aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 513d6415..798c285c 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -387,7 +387,7 @@ MHD_get_connection_values (struct MHD_Connection *connection,
387 void *iterator_cls) 387 void *iterator_cls)
388{ 388{
389 int ret; 389 int ret;
390 struct MHD_HTTP_Header *pos; 390 struct MHD_HTTP_Req_Header *pos;
391 391
392 if (NULL == connection) 392 if (NULL == connection)
393 return -1; 393 return -1;
@@ -426,7 +426,7 @@ MHD_get_connection_values_n (struct MHD_Connection *connection,
426 void *iterator_cls) 426 void *iterator_cls)
427{ 427{
428 int ret; 428 int ret;
429 struct MHD_HTTP_Header *pos; 429 struct MHD_HTTP_Req_Header *pos;
430 430
431 if (NULL == connection) 431 if (NULL == connection)
432 return -1; 432 return -1;
@@ -480,10 +480,10 @@ MHD_set_connection_value_n_nocheck_ (struct MHD_Connection *connection,
480 const char *value, 480 const char *value,
481 size_t value_size) 481 size_t value_size)
482{ 482{
483 struct MHD_HTTP_Header *pos; 483 struct MHD_HTTP_Req_Header *pos;
484 484
485 pos = connection_alloc_memory (connection, 485 pos = connection_alloc_memory (connection,
486 sizeof (struct MHD_HTTP_Header)); 486 sizeof (struct MHD_HTTP_Res_Header));
487 if (NULL == pos) 487 if (NULL == pos)
488 return MHD_NO; 488 return MHD_NO;
489 pos->header = (char *) key; 489 pos->header = (char *) key;
@@ -653,7 +653,7 @@ MHD_lookup_connection_value_n (struct MHD_Connection *connection,
653 const char **value_ptr, 653 const char **value_ptr,
654 size_t *value_size_ptr) 654 size_t *value_size_ptr)
655{ 655{
656 struct MHD_HTTP_Header *pos; 656 struct MHD_HTTP_Req_Header *pos;
657 657
658 if (NULL == connection) 658 if (NULL == connection)
659 return MHD_NO; 659 return MHD_NO;
@@ -716,14 +716,10 @@ MHD_lookup_header_token_ci (const struct MHD_Connection *connection,
716 const char *token, 716 const char *token,
717 size_t token_len) 717 size_t token_len)
718{ 718{
719 struct MHD_HTTP_Header *pos; 719 struct MHD_HTTP_Req_Header *pos;
720 720
721 if ((NULL == connection) || (NULL == header) || (0 == header[0]) || (NULL == 721 if ((NULL == connection) || (NULL == header) || (0 == header[0]) ||
722 token) || 722 (NULL == token) || (0 == token[0]))
723 (0 ==
724 token
725 [
726 0]) )
727 return false; 723 return false;
728 724
729 for (pos = connection->headers_received; NULL != pos; pos = pos->next) 725 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
@@ -1934,7 +1930,7 @@ add_user_headers (char *buf,
1934 bool add_keep_alive) 1930 bool add_keep_alive)
1935{ 1931{
1936 struct MHD_Response *const r = response; /**< a short alias */ 1932 struct MHD_Response *const r = response; /**< a short alias */
1937 struct MHD_HTTP_Header *hdr; /**< Iterates through User-specified headers */ 1933 struct MHD_HTTP_Res_Header *hdr; /**< Iterates through User-specified headers */
1938 size_t el_size; /**< the size of current element to be added to the @a buf */ 1934 size_t el_size; /**< the size of current element to be added to the @a buf */
1939 1935
1940 mhd_assert (! add_close || ! add_keep_alive); 1936 mhd_assert (! add_close || ! add_keep_alive);
@@ -2276,7 +2272,7 @@ build_connection_chunked_response_footer (struct MHD_Connection *connection)
2276 size_t buf_size; /**< the size of the @a buf */ 2272 size_t buf_size; /**< the size of the @a buf */
2277 size_t used_size; /**< the used size of the @a buf */ 2273 size_t used_size; /**< the used size of the @a buf */
2278 struct MHD_Connection *const c = connection; /**< a short alias */ 2274 struct MHD_Connection *const c = connection; /**< a short alias */
2279 struct MHD_HTTP_Header *pos; 2275 struct MHD_HTTP_Res_Header *pos;
2280 2276
2281 mhd_assert (connection->rp_props.chunked); 2277 mhd_assert (connection->rp_props.chunked);
2282 /* TODO: allow combining of the final footer with the last chunk, 2278 /* TODO: allow combining of the final footer with the last chunk,
@@ -5219,7 +5215,7 @@ MHD_queue_response (struct MHD_Connection *connection,
5219#ifdef UPGRADE_SUPPORT 5215#ifdef UPGRADE_SUPPORT
5220 if (NULL != response->upgrade_handler) 5216 if (NULL != response->upgrade_handler)
5221 { 5217 {
5222 struct MHD_HTTP_Header *conn_header; 5218 struct MHD_HTTP_Res_Header *conn_header;
5223 if (0 == (daemon->options & MHD_ALLOW_UPGRADE)) 5219 if (0 == (daemon->options & MHD_ALLOW_UPGRADE))
5224 { 5220 {
5225#ifdef HAVE_MESSAGES 5221#ifdef HAVE_MESSAGES