aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_response.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-11-01 18:07:27 +0100
committerMicael Karlberg <[email protected]>2011-11-01 18:07:27 +0100
commit5fdd7be5b5b99658f7f9d05e7df3a572d73dd6cb (patch)
treef37b03eb4d9abe09a2bcf19b926fa8231474bcad /lib/inets/src/http_server/httpd_response.erl
parentf8b20b4a995727f0339074d23a0fae50712683d2 (diff)
downloadotp-5fdd7be5b5b99658f7f9d05e7df3a572d73dd6cb.tar.gz
otp-5fdd7be5b5b99658f7f9d05e7df3a572d73dd6cb.tar.bz2
otp-5fdd7be5b5b99658f7f9d05e7df3a572d73dd6cb.zip
[httpd] GET request with malformed header date caused
server crash (non-fatal) with no reply to client. Will now result in a reply with status code 400. OTP-9674
Diffstat (limited to 'lib/inets/src/http_server/httpd_response.erl')
-rw-r--r--lib/inets/src/http_server/httpd_response.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/src/http_server/httpd_response.erl b/lib/inets/src/http_server/httpd_response.erl
index ea9cfbf4f2..067276324b 100644
--- a/lib/inets/src/http_server/httpd_response.erl
+++ b/lib/inets/src/http_server/httpd_response.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -78,6 +78,7 @@ traverse_modules(ModData,[Module|Rest]) ->
[Module, Reason])),
report_error(mod_log, ModData#mod.config_db, String),
report_error(mod_disk_log, ModData#mod.config_db, String),
+ send_status(ModData, 500, none),
done;
done ->
?hdrt("traverse modules - done", []),