Mailing List Archive

Issue 1338 in cherokee: Host header is case-sensitive but shouldn't be
Status: New
Owner: ----

New issue 1338 by daniel@d15.biz: Host header is case-sensitive but
shouldn't be
http://code.google.com/p/cherokee/issues/detail?id=1338

What steps will reproduce the problem?
1. Set up a new Cherokee vServer at example.com
2. Send a request with a host header of Example.com (uppercase E)

Expected: Home page for example.com
Actual: Default Cherokee page

Section 3.2.3 of RFC 2616 (HTTP 1.1) states that "comparisons of host names
MUST be case-insensitive". Most browsers automatically convert host names
to lowercase, but some may not (and requests through libraries like cURL
may not do this).

Originally reported in the mailing list:
http://lists.octality.com/pipermail/cherokee/2012-January/015369.html


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1338 in cherokee: Host header is case-sensitive but shouldn't be [ In reply to ]
Updates:
Status: Accepted
Labels: Type-Defect Priority-Low Component-Logic Usability

Comment #1 on issue 1338 by ste...@konink.de: Host header is case-sensitive
but shouldn't be
http://code.google.com/p/cherokee/issues/detail?id=1338

The only real affected browser is Android. Easy workaround using a case
insensitive regualar expression match. The bug should be reported to
Google...

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1338 in cherokee: Host header is case-sensitive but shouldn't be [ In reply to ]
Comment #2 on issue 1338 by daniel@d15.biz: Host header is case-sensitive
but shouldn't be
http://code.google.com/p/cherokee/issues/detail?id=1338

Looks like cURL is affected as well.

Even if it's an issue in the browsers, it's still a protocol violation
since the host header should be case insensitive. Perhaps Cherokee could
convert it to lowercase before matching?

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1338 in cherokee: Host header is case-sensitive but shouldn't be [ In reply to ]
Comment #3 on issue 1338 by daniel@d15.biz: Host header is case-sensitive
but shouldn't be
http://code.google.com/p/cherokee/issues/detail?id=1338

Looks like cURL is affected as well.

Even if it's an issue in the browsers and HTTP libraries, it's still a
protocol violation on Cherokee's part, since the host header should be case
insensitive. Perhaps Cherokee could convert it to lowercase before matching?

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1338 in cherokee: Host header is case-sensitive but shouldn't be [ In reply to ]
Updates:
Status: Duplicate
Mergedinto: 1190

Comment #4 on issue 1338 by ste...@konink.de: Host header is case-sensitive
but shouldn't be
http://code.google.com/p/cherokee/issues/detail?id=1338

Actually a duplicate of 1190, thanks anyway for reporting it. Especially
that it can be reproduced with cURL.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev