From 0bfe068c101ea5848950ed9fe4d4d32bd2a3f7f4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 8 Jul 2016 13:59:36 +0000 Subject: [PATCH] support 308 --- ChangeLog | 3 +++ src/include/microhttpd.h | 1 + src/microhttpd/reason_phrase.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 856af873..66f5ebc1 100644 --- 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 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 #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 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[] = { "Not Modified", "Use Proxy", "Switch Proxy", - "Temporary Redirect" + "Temporary Redirect", + "Permanent Redirect" }; static const char *const four_hundred[] = {