diff options
author | Ingela Andin <ingela@erlang.org> | 2017-07-10 10:24:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 10:24:11 +0200 |
commit | 636a6faa59bc11e14de27358633c64f35ed075af (patch) | |
tree | 859dad7f9618a79a279cae6806b695d6c0a605f7 | |
parent | 0e9e2dadbee5dfcd78fb63a0120961a3782fe9a7 (diff) | |
parent | 36e87aae5974a6add3e269aafac2bab889f1faab (diff) | |
download | erlang-636a6faa59bc11e14de27358633c64f35ed075af.tar.gz |
Merge pull request #1504 from vances/issue-erl-443
Log actual http status code of response.
OTP-14510
-rw-r--r-- | lib/inets/src/http_server/mod_log.erl | 4 |
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 -> |