Fixed bug with writing responses

Connections are now closed after response is send if client requested "Connection: close"
This commit is contained in:
2014-07-29 21:23:36 +01:00
parent 31e1ff4f97
commit e8d1e4d7d9
6 changed files with 23 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ extern "C" {
extern UT_icd http_header_icd;
#define HTTP_HEADER_FOREACH(list, elem) \
for ( http_header *elem= (http_header*)utarray_next(list,NULL); \
for (elem= (http_header*)utarray_next(list,NULL); \
elem!= NULL; \
elem=(http_header*)utarray_next(list,elem))