diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 13:59:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 13:59:36 +0000 |
commit | 0bfe068c101ea5848950ed9fe4d4d32bd2a3f7f4 (patch) | |
tree | c444876b120fb630ccd5ee6cd6cd69a48076c01f | |
parent | ec79f5e0dbe50dc2eaf7c6cb39fa3579b2b98529 (diff) | |
download | libmicrohttpd-0bfe068c101ea5848950ed9fe4d4d32bd2a3f7f4.tar.gz libmicrohttpd-0bfe068c101ea5848950ed9fe4d4d32bd2a3f7f4.zip |
support 308
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/include/microhttpd.h | 1 | ||||
-rw-r--r-- | src/microhttpd/reason_phrase.c | 3 |
3 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,6 @@ | |||
1 | Fri Jul 8 15:57:06 CEST 2016 | ||
2 | Adding support for 308 status code. -CG | ||
3 | |||
1 | Sat Jun 25 13:49:31 CEST 2016 | 4 | Sat Jun 25 13:49:31 CEST 2016 |
2 | Use shutdown to trigger select on NetBSD. -EG | 5 | Use shutdown to trigger select on NetBSD. -EG |
3 | 6 | ||
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 28204a94..874da9f1 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -323,6 +323,7 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG | |||
323 | #define MHD_HTTP_USE_PROXY 305 | 323 | #define MHD_HTTP_USE_PROXY 305 |
324 | #define MHD_HTTP_SWITCH_PROXY 306 | 324 | #define MHD_HTTP_SWITCH_PROXY 306 |
325 | #define MHD_HTTP_TEMPORARY_REDIRECT 307 | 325 | #define MHD_HTTP_TEMPORARY_REDIRECT 307 |
326 | #define MHD_HTTP_PERMANENT_REDIRECT 308 | ||
326 | 327 | ||
327 | #define MHD_HTTP_BAD_REQUEST 400 | 328 | #define MHD_HTTP_BAD_REQUEST 400 |
328 | #define MHD_HTTP_UNAUTHORIZED 401 | 329 | #define MHD_HTTP_UNAUTHORIZED 401 |
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c index 541efa20..82605565 100644 --- a/src/microhttpd/reason_phrase.c +++ b/src/microhttpd/reason_phrase.c | |||
@@ -57,7 +57,8 @@ static const char *const three_hundred[] = { | |||
57 | "Not Modified", | 57 | "Not Modified", |
58 | "Use Proxy", | 58 | "Use Proxy", |
59 | "Switch Proxy", | 59 | "Switch Proxy", |
60 | "Temporary Redirect" | 60 | "Temporary Redirect", |
61 | "Permanent Redirect" | ||
61 | }; | 62 | }; |
62 | 63 | ||
63 | static const char *const four_hundred[] = { | 64 | static const char *const four_hundred[] = { |