basho/webmachine — pull request #143 by kellymclaughlin (2013-05-07 17:07:02+00:00)
Title: webmachine_dispatcher crashes on malformed Host header

When a misconfigured client sends in a Host header of the form "Host: foo.bar.baz:80:80" (or really anything not of the expected form "{host}" or "{host}:{port}" webmachine handler process crashes instead of gracefully returning an error code.

CRASH REPORT Process <0.24640.19> with 0 neighbours crashed with reason: no case clause matching ["foo.bar.com","80","80"] in webmachine_dispatcher:split_host_port/1 line 55