aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-18 13:13:59 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-18 13:13:59 +0000
commitfe4fa4d3c2f47197da462fedbbd3aa364fab2279 (patch)
tree5bafe1c263309e5bba259cd7b5e56fe72ec15a43
parent017c372418745036838314c0bf6cefba1773d3d9 (diff)
downloadlibmicrohttpd-fe4fa4d3c2f47197da462fedbbd3aa364fab2279.tar.gz
libmicrohttpd-fe4fa4d3c2f47197da462fedbbd3aa364fab2279.zip
add another standard header
-rw-r--r--ChangeLog3
-rw-r--r--src/include/microhttpd.h3
-rw-r--r--src/microhttpd/connection.c2
-rw-r--r--src/testcurl/test_get.c2
-rw-r--r--src/testcurl/test_parse_cookies.c2
5 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 248aeacb..4945f691 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Wed Sep 18 14:31:35 CEST 2013
2 Adding #define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN. -CG
3
1Tue Sep 17 21:32:47 CEST 2013 4Tue Sep 17 21:32:47 CEST 2013
2 Also pass MHD connection handle in URI log callback. -CG 5 Also pass MHD connection handle in URI log callback. -CG
3 6
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 9d9af65d..3d3de5f8 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -121,7 +121,7 @@ extern "C"
121 * Current version of the library. 121 * Current version of the library.
122 * 0x01093001 = 1.9.30-1. 122 * 0x01093001 = 1.9.30-1.
123 */ 123 */
124#define MHD_VERSION 0x00093001 124#define MHD_VERSION 0x00093002
125 125
126/** 126/**
127 * MHD-internal return code for "YES". 127 * MHD-internal return code for "YES".
@@ -314,6 +314,7 @@ extern "C"
314#define MHD_HTTP_HEADER_VIA "Via" 314#define MHD_HTTP_HEADER_VIA "Via"
315#define MHD_HTTP_HEADER_WARNING "Warning" 315#define MHD_HTTP_HEADER_WARNING "Warning"
316#define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate" 316#define MHD_HTTP_HEADER_WWW_AUTHENTICATE "WWW-Authenticate"
317#define MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN "Access-Control-Allow-Origin"
317 318
318/** @} */ /* end of group headers */ 319/** @} */ /* end of group headers */
319 320
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 611ff12f..4e6fed5a 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1470,7 +1470,7 @@ process_request_body (struct MHD_Connection *connection)
1470 , NULL 1470 , NULL
1471#endif 1471#endif
1472 ); 1472 );
1473 if (processed != 0) 1473 if (0 != processed)
1474 instant_retry = MHD_NO; /* client did not process everything */ 1474 instant_retry = MHD_NO; /* client did not process everything */
1475 used -= processed; 1475 used -= processed;
1476 if (connection->have_chunked_upload == MHD_YES) 1476 if (connection->have_chunked_upload == MHD_YES)
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index 3795db2a..cbe0e258 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -401,7 +401,7 @@ testUnknownPortGet (int poll_flag)
401 if (di == NULL) 401 if (di == NULL)
402 return 65536; 402 return 65536;
403 403
404 if (0 != getsockname(di->listen_fd, &addr, &addr_len)) 404 if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len))
405 return 131072; 405 return 131072;
406 406
407 if (addr.sin_family != AF_INET) 407 if (addr.sin_family != AF_INET)
diff --git a/src/testcurl/test_parse_cookies.c b/src/testcurl/test_parse_cookies.c
index 018f4a0f..2eb178c5 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -5,7 +5,7 @@
5 5
6 libmicrohttpd is free software; you can redistribute it and/or modify 6 libmicrohttpd is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published 7 it under the terms of the GNU General Public License as published
8 by the Free Software Foundation; either version 2, or (at your 8 by the Free Software Foundation; either version 3, or (at your
9 option) any later version. 9 option) any later version.
10 10
11 libmicrohttpd is distributed in the hope that it will be useful, but 11 libmicrohttpd is distributed in the hope that it will be useful, but