[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9500] Avoid sending Content-Length header if data i
From: |
Giuseppe Modugno |
Subject: |
[lwip-devel] [patch #9500] Avoid sending Content-Length header if data is not ready yet |
Date: |
Mon, 27 Nov 2017 04:02:18 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 |
URL:
<http://savannah.nongnu.org/patch/?9500>
Summary: Avoid sending Content-Length header if data is not
ready yet
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: giusloq
Submitted on: Mon 27 Nov 2017 09:02:15 AM UTC
Category: apps
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
diff --git a/src/apps/httpd/httpd.c b/src/apps/httpd/httpd.c
index 0ac8d49..112c7a8 100644
--- a/src/apps/httpd/httpd.c
+++ b/src/apps/httpd/httpd.c
@@ -936,7 +936,7 @@ get_http_headers(struct http_state *hs, const char *uri)
add_content_len = 0; /* @todo: get maximum file length from SSI */
} else
#endif /* LWIP_HTTPD_SSI */
- if ((hs->handle == NULL) ||
+ if ((hs->handle == NULL) || (hs->handle->data == NULL) ||
((hs->handle->flags & (FS_FILE_FLAGS_HEADER_INCLUDED |
FS_FILE_FLAGS_HEADER_PERSISTENT)) == FS_FILE_FLAGS_HEADER_INCLUDED)) {
add_content_len = 0;
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9500>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9500] Avoid sending Content-Length header if data is not ready yet,
Giuseppe Modugno <=