summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-10-06 15:37:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:38 -0500
commit213f0d62f129e0bcf736a313efc4bf85d9406773 (patch)
tree44eecae1db1ad9f29a218da50888fb6da1f72769 /source4
parentd9cd237995229efa41df33a529c7e9876dd1a980 (diff)
downloadsamba-213f0d62f129e0bcf736a313efc4bf85d9406773.tar.gz
samba-213f0d62f129e0bcf736a313efc4bf85d9406773.tar.bz2
samba-213f0d62f129e0bcf736a313efc4bf85d9406773.zip
r19139: typos; consitent ordering of operations
(This used to be commit aaab47cb910fbbec6913bc5f796f0d6d479f729d)
Diffstat (limited to 'source4')
-rw-r--r--source4/web_server/http.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index 43da3c9416..f9867a152a 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -548,11 +548,13 @@ static void jsonrpc_request(struct esp_state *esp)
}
/*
- perform pre-authentication on every page is /scripting/preauth.esp
+ perform pre-authentication on every page if /scripting/preauth.esp
exists. If this script generates any non-whitepace output at all,
then we don't run the requested URL.
- note that the preauth is run even for static pages such as images.
+ note that the preauth is run even for static pages such as images, but not
+ for JSON-RPC service requests which do their own authentication via the
+ JSON-RPC server.
*/
static BOOL http_preauth(struct esp_state *esp)
{
@@ -900,13 +902,13 @@ void http_process_input(struct websrv_context *web)
}
for (i=0;p && i<ARRAY_SIZE(mime_types);i++) {
if (strcmp(mime_types[i].extension, p+1) == 0) {
- file_type = mime_types[i].mime_type;
page_type = mime_types[i].page_type;
+ file_type = mime_types[i].mime_type;
}
}
if (file_type == NULL) {
- file_type = "text/html";
page_type = page_type_simple;
+ file_type = "text/html";
}
}