projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mimetypes: add json and jsonp (distinct from js)
[project/uhttpd.git]
/
client.c
diff --git
a/client.c
b/client.c
index
3a6b09e
..
0d7029b
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-39,6
+39,7
@@
const char * const http_methods[] = {
[UH_HTTP_MSG_GET] = "GET",
[UH_HTTP_MSG_POST] = "POST",
[UH_HTTP_MSG_HEAD] = "HEAD",
[UH_HTTP_MSG_GET] = "GET",
[UH_HTTP_MSG_POST] = "POST",
[UH_HTTP_MSG_HEAD] = "HEAD",
+ [UH_HTTP_MSG_OPTIONS] = "OPTIONS",
};
void uh_http_header(struct client *cl, int code, const char *summary)
};
void uh_http_header(struct client *cl, int code, const char *summary)
@@
-47,6
+48,8
@@
void uh_http_header(struct client *cl, int code, const char *summary)
const char *enc = "Transfer-Encoding: chunked\r\n";
const char *conn;
const char *enc = "Transfer-Encoding: chunked\r\n";
const char *conn;
+ cl->http_code = code;
+
if (!uh_use_chunked(cl))
enc = "";
if (!uh_use_chunked(cl))
enc = "";