Christian Grothoff 9 år sedan
förälder
incheckning
0bfe068c10
3 ändrade filer med 6 tillägg och 1 borttagningar
  1. 3 0
      ChangeLog
  2. 1 0
      src/include/microhttpd.h
  3. 2 1
      src/microhttpd/reason_phrase.c

+ 3 - 0
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
 

+ 1 - 0
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

+ 2 - 1
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[] = {