commit 0bfe068c101ea5848950ed9fe4d4d32bd2a3f7f4
parent ec79f5e0dbe50dc2eaf7c6cb39fa3579b2b98529
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 8 Jul 2016 13:59:36 +0000
support 308
Diffstat:
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Fri Jul 8 15:57:06 CEST 2016
+ Adding support for 308 status code. -CG
+
Sat Jun 25 13:49:31 CEST 2016
Use shutdown to trigger select on NetBSD. -EG
diff --git 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
#define MHD_HTTP_USE_PROXY 305
#define MHD_HTTP_SWITCH_PROXY 306
#define MHD_HTTP_TEMPORARY_REDIRECT 307
+#define MHD_HTTP_PERMANENT_REDIRECT 308
#define MHD_HTTP_BAD_REQUEST 400
#define MHD_HTTP_UNAUTHORIZED 401
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c
@@ -57,7 +57,8 @@ static const char *const three_hundred[] = {
"Not Modified",
"Use Proxy",
"Switch Proxy",
- "Temporary Redirect"
+ "Temporary Redirect",
+ "Permanent Redirect"
};
static const char *const four_hundred[] = {