Bug 58417 - ApacheBench (ab) won't display Server Software of Erlang/Cowboy web server
Summary: ApacheBench (ab) won't display Server Software of Erlang/Cowboy web server
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: support (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-16 09:33 UTC by Arkadi Shishlov
Modified: 2015-09-21 04:56 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadi Shishlov 2015-09-16 09:33:24 UTC
Server Name field might be empty in test results output because AB uses case-sensitive comparison to extract the Server HTTP header, yet widely used Cowboy Erlang web framework outputs lowercased headers only (by design).

p = strstr(c->cbuff, "Server:");
http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?view=markup
around line 1540.

https://github.com/ninenines/cowboy/blob/master/doc/src/guide/resp.ezdoc#L22