summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 17:28:48 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-05 17:28:48 +0900
commit6ea1b68db186036e9f05c06915f8c4bd757c3a25 (patch)
tree0e148a4be7c62b14e3d9c0a879d4a8f3161fe4d9 /src/HttpServerCommand.cc
parent4dad3ded159f77b819d1f84abd16655ec119284e (diff)
Added SocketBuffer::pushStrSwap
Diffstat (limited to 'src/HttpServerCommand.cc')
-rw-r--r--src/HttpServerCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc
index 4dd43a7c..9cb0ebe1 100644
--- a/src/HttpServerCommand.cc
+++ b/src/HttpServerCommand.cc
@@ -123,9 +123,10 @@ bool HttpServerCommand::execute()
}
if(!httpServer_->authenticate()) {
httpServer_->disableKeepAlive();
+ std::string text;
httpServer_->feedResponse("401 Unauthorized",
"WWW-Authenticate: Basic realm=\"aria2\"",
- "","text/html");
+ text,"text/html");
Command* command =
new HttpServerResponseCommand(getCuid(), httpServer_, e_, socket_);
e_->addCommand(command);