libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit f0ca101e2295187e56729a00315ad18d3819c9da
parent 35723abc6735df6f57f89b88557dc14f87c4a5e8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  5 Oct 2009 19:17:51 +0000

add

Diffstat:
MChangeLog | 3+++
Msrc/daemon/connection.c | 4+++-
Msrc/include/microhttpd.h | 3+++
3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +Mon Oct 5 21:17:26 CEST 2009 + Adding "COOKIE" header string #defines. -CG + Mon Oct 5 08:29:06 CEST 2009 Documenting default values. -CG diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -986,7 +986,9 @@ parse_cookie_header (struct MHD_Connection *connection) char old; int quotes; - hdr = MHD_lookup_connection_value (connection, MHD_HEADER_KIND, "Cookie"); + hdr = MHD_lookup_connection_value (connection, + MHD_HEADER_KIND, + MHD_HTTP_HEADER_COOKIE); if (hdr == NULL) return MHD_YES; cpy = MHD_pool_allocate (connection->pool, strlen (hdr) + 1, MHD_YES); diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -174,6 +174,7 @@ extern "C" #define MHD_HTTP_HEADER_CONTENT_MD5 "Content-MD5" #define MHD_HTTP_HEADER_CONTENT_RANGE "Content-Range" #define MHD_HTTP_HEADER_CONTENT_TYPE "Content-Type" +#define MHD_HTTP_HEADER_COOKIE "Cookie" #define MHD_HTTP_HEADER_DATE "Date" #define MHD_HTTP_HEADER_ETAG "ETag" #define MHD_HTTP_HEADER_EXPECT "Expect" @@ -195,6 +196,8 @@ extern "C" #define MHD_HTTP_HEADER_REFERER "Referer" #define MHD_HTTP_HEADER_RETRY_AFTER "Retry-After" #define MHD_HTTP_HEADER_SERVER "Server" +#define MHD_HTTP_HEADER_SET_COOKIE "Set-Cookie" +#define MHD_HTTP_HEADER_SET_COOKIE2 "Set-Cookie2" #define MHD_HTTP_HEADER_TE "TE" #define MHD_HTTP_HEADER_TRAILER "Trailer" #define MHD_HTTP_HEADER_TRANSFER_ENCODING "Transfer-Encoding"