gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] branch master updated (af2b27a7 -> 4b12c7f8


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated (af2b27a7 -> 4b12c7f8)
Date: Fri, 24 Feb 2017 19:43:36 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from af2b27a7 microhttpd.h: added HTTP header categories and source of HTTP 
header definition
     new 3ef98c28 reason_phrase.c: fixed unofficial spelling, shift in 3xx 
reasons, minor fixes
     new 4b12c7f8 reason_phrase.c: updated response phrases to latest.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/include/microhttpd.h       |  2 ++
 src/microhttpd/reason_phrase.c | 53 +++++++++++++++++++++++++++++-------------
 2 files changed, 39 insertions(+), 16 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 201be288..18250294 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -298,6 +298,8 @@ _MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, 
use MHD_UNSIGNED_LONG
  * These are the status codes defined for HTTP responses.
  * @{
  */
+/* See 
http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml */
+
 #define MHD_HTTP_CONTINUE 100
 #define MHD_HTTP_SWITCHING_PROTOCOLS 101
 #define MHD_HTTP_PROCESSING 102
diff --git a/src/microhttpd/reason_phrase.c b/src/microhttpd/reason_phrase.c
index 03e741b2..425bb47a 100644
--- a/src/microhttpd/reason_phrase.c
+++ b/src/microhttpd/reason_phrase.c
@@ -27,10 +27,10 @@
 #include "microhttpd.h"
 
 #ifndef NULL
-#define NULL (void*)0
+#define NULL ((void*)0)
 #endif
 
-static const char *invalid_hundred[] = {
+static const char *const invalid_hundred[] = {
   NULL
 };
 
@@ -48,13 +48,33 @@ static const char *const two_hundred[] = {
   "No Content",
   "Reset Content",
   "Partial Content",
-  "Multi Status"
+  "Multi-Status",
+  "Already Reported",
+  "Unknown",
+  "Unknown", /* 210 */
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown", /* 215 */
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown", /* 220 */
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown",
+  "Unknown", /* 225 */
+  "IM Used"
 };
 
 static const char *const three_hundred[] = {
   "Multiple Choices",
   "Moved Permanently",
   "Moved Temporarily",
+  "Found",
   "See Other",
   "Not Modified",
   "Use Proxy",
@@ -72,30 +92,30 @@ static const char *const four_hundred[] = {
   "Method Not Allowed",
   "Not Acceptable",
   "Proxy Authentication Required",
-  "Request Time-out",
+  "Request Timeout",
   "Conflict",
   "Gone",
   "Length Required",
   "Precondition Failed",
-  "Request Entity Too Large",
-  "Request-URI Too Large",
+  "Payload Too Large",
+  "URI Too Long",
   "Unsupported Media Type",
-  "Requested Range Not Satisfiable",
+  "Range Not Satisfiable",
   "Expectation Failed",
   "Unknown",
   "Unknown",
   "Unknown", /* 420 */
-  "Unknown",
+  "Misdirected Request",
   "Unprocessable Entity",
   "Locked",
   "Failed Dependency",
   "Unordered Collection",
   "Upgrade Required",
   "Unknown",
-  "Unknown",
-  "Unknown",
+  "Precondition Required",
+  "Too Many Requests",
   "Unknown", /* 430 */
-  "Unknown",
+  "Request Header Fields Too Large",
   "Unknown",
   "Unknown",
   "Unknown",
@@ -123,19 +143,20 @@ static const char *const five_hundred[] = {
   "Not Implemented",
   "Bad Gateway",
   "Service Unavailable",
-  "Gateway Time-out",
-  "HTTP Version not supported",
+  "Gateway Timeout",
+  "HTTP Version Not Supported",
   "Variant Also Negotiates",
   "Insufficient Storage",
-  "Unknown",
+  "Loop Detected",
   "Bandwidth Limit Exceeded",
-  "Not Extended"
+  "Not Extended",
+  "Network Authentication Required"
 };
 
 
 struct MHD_Reason_Block
 {
-  unsigned int max;
+  size_t max;
   const char *const*data;
 };
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]