Christian Grothoff 13 vuotta sitten
vanhempi
sitoutus
34067a4a2c
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 2 0
      src/daemon/connection.c
  2. 1 0
      src/include/microhttpd.h

+ 2 - 0
src/daemon/connection.c

@@ -1637,6 +1637,7 @@ do_write (struct MHD_Connection *connection)
   return MHD_YES;
 }
 
+
 /**
  * Check if we are done sending the write-buffer.
  * If so, transition into "next_state".
@@ -1659,6 +1660,7 @@ check_write_done (struct MHD_Connection *connection,
   return MHD_YES;
 }
 
+
 /**
  * We have received (possibly the beginning of) a line in the
  * header (or footer).  Validate (check for ":") and prepare

+ 1 - 0
src/include/microhttpd.h

@@ -266,6 +266,7 @@ extern "C"
 #define MHD_HTTP_HEADER_PROXY_AUTHENTICATE "Proxy-Authenticate"
 #define MHD_HTTP_HEADER_PROXY_AUTHORIZATION "Proxy-Authorization"
 #define MHD_HTTP_HEADER_RANGE "Range"
+/* This is not a typo, see HTTP spec */
 #define MHD_HTTP_HEADER_REFERER "Referer"
 #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After"
 #define MHD_HTTP_HEADER_SERVER "Server"