aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_lib/http_response.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-11-18 10:58:22 +0100
committerIngela Anderton Andin <[email protected]>2015-11-27 16:21:32 +0100
commitebbbd714ad2398858b09065bce82830d8affe2a4 (patch)
tree8a8851d7053492d8a045e07b5dce2c26a9476f76 /lib/inets/src/http_lib/http_response.erl
parent7096f9228af1cdf98843660560a0d84b48cf766b (diff)
downloadotp-ebbbd714ad2398858b09065bce82830d8affe2a4.tar.gz
otp-ebbbd714ad2398858b09065bce82830d8affe2a4.tar.bz2
otp-ebbbd714ad2398858b09065bce82830d8affe2a4.zip
inets: Add warning header in "chunk trailer" when mod_esi callback times out or fails
Also remove legacy debug macros and add help function httpd_util:error_log/2 to avoid code duplication.
Diffstat (limited to 'lib/inets/src/http_lib/http_response.erl')
-rw-r--r--lib/inets/src/http_lib/http_response.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/inets/src/http_lib/http_response.erl b/lib/inets/src/http_lib/http_response.erl
index d13670700c..42e5dd263d 100644
--- a/lib/inets/src/http_lib/http_response.erl
+++ b/lib/inets/src/http_lib/http_response.erl
@@ -65,6 +65,8 @@ header_list(Headers) ->
%%%========================================================================
fill_headers([], _, Headers) ->
Headers;
+fill_headers([[]], _, Headers) ->
+ Headers;
fill_headers([[Ch|HeaderFold]|Tail], Folded, Headers)
when Ch == $\t; Ch == $\s ->
fill_headers(Tail, [HeaderFold|Folded], Headers);