aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Andin <[email protected]>2017-07-10 10:24:11 +0200
committerGitHub <[email protected]>2017-07-10 10:24:11 +0200
commit636a6faa59bc11e14de27358633c64f35ed075af (patch)
tree859dad7f9618a79a279cae6806b695d6c0a605f7 /lib
parent0e9e2dadbee5dfcd78fb63a0120961a3782fe9a7 (diff)
parent36e87aae5974a6add3e269aafac2bab889f1faab (diff)
downloadotp-636a6faa59bc11e14de27358633c64f35ed075af.tar.gz
otp-636a6faa59bc11e14de27358633c64f35ed075af.tar.bz2
otp-636a6faa59bc11e14de27358633c64f35ed075af.zip
Merge pull request #1504 from vances/issue-erl-443
Log actual http status code of response. OTP-14510
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/src/http_server/mod_log.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/mod_log.erl b/lib/inets/src/http_server/mod_log.erl
index ad7e9713d9..ec570504be 100644
--- a/lib/inets/src/http_server/mod_log.erl
+++ b/lib/inets/src/http_server/mod_log.erl
@@ -105,8 +105,8 @@ do(Info) ->
Code = proplists:get_value(code,Head,unknown),
transfer_log(Info, "-", AuthUser, Date, Code, Size),
{proceed, Info#mod.data};
- {_StatusCode, Response} ->
- transfer_log(Info,"-",AuthUser,Date,200,
+ {StatusCode, Response} ->
+ transfer_log(Info, "-", AuthUser, Date, StatusCode,
httpd_util:flatlength(Response)),
{proceed,Info#mod.data};
undefined ->