Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
0183-Log-actual-http-status-code-of-response.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0183-Log-actual-http-status-code-of-response.patch of Package erlang
From 36e87aae5974a6add3e269aafac2bab889f1faab Mon Sep 17 00:00:00 2001 From: Vance Shipley <vances@sigscale.org> Date: Fri, 7 Jul 2017 12:55:54 +0530 Subject: [PATCH] Log actual http status code of response. The status code provided by other modules was being ignored and 200 (OK) was logged for all responses. --- lib/inets/src/http_server/mod_log.erl | 4 ++-- 1 file 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 ad7e9713d..ec570504b 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 -> -- 2.13.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor