Browse Source

Revert: continue match footers in MHD_get_response_header().
This is a partial revert of 6894504f51ecd271f7471c69935329b1402f49c2

Evgeny Grin (Karlson2k) 8 years ago
parent
commit
4809ee654a
2 changed files with 5 additions and 2 deletions
  1. 4 0
      ChangeLog
  2. 1 2
      src/microhttpd/response.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Tue May  9 12:28:00 MSK 2017
+	Revert: continue match footers in MHD_get_response_header() for backward
+	compatibility. -EG
+
 Mon May  8 19:30:00 MSK 2017
 	Fixed: use case-insensitive matching for header name in
 	MHD_get_response_header(), match only headers (not footers). -EG

+ 1 - 2
src/microhttpd/response.c

@@ -241,8 +241,7 @@ MHD_get_response_header (struct MHD_Response *response,
     return NULL;
   for (pos = response->first_header; NULL != pos; pos = pos->next)
     {
-      if ( (pos->kind == MHD_HEADER_KIND) &&
-           MHD_str_equal_caseless_ (pos->header, key) )
+      if ( MHD_str_equal_caseless_ (pos->header, key) )
         return pos->value;
     }
   return NULL;