summaryrefslogtreecommitdiff
path: root/server/src/httpd.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-14 10:43:17 +0000
committerdeva <deva>2011-02-14 10:43:17 +0000
commitdc8cfaa08168fdd332faded2f78679a2a1904fbe (patch)
tree27d9939d1e8c57f98e819c25ae1a0021c1b97435 /server/src/httpd.cc
parentc1f0cdeb919864e0f93fcfecb8c27d889b473acb (diff)
'Ported' export functionality from macrotool.
Diffstat (limited to 'server/src/httpd.cc')
-rw-r--r--server/src/httpd.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/httpd.cc b/server/src/httpd.cc
index ce1a1ce..185ad9d 100644
--- a/server/src/httpd.cc
+++ b/server/src/httpd.cc
@@ -117,7 +117,13 @@ static int request_handler(void *cls,
i++;
}
- ret = MHD_queue_response(con, reply.status, rsp);
+ bool authfailed = true;
+ if(authfailed) {
+ ret = MHD_queue_basic_auth_fail_response(con, "my realm", rsp);
+ } else {
+ ret = MHD_queue_response(con, reply.status, rsp);
+ }
+
MHD_destroy_response(rsp);
}