Project

General

Profile

Actions

Bug #1980

closed

conflict with RFC 2616 Section 5.2

Added by ycheng almost 16 years ago. Updated almost 9 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

Request.c
http://redmine.lighttpd.net/projects/lighttpd/repository/entry/trunk/src/request.c
Line 439-445
439 if (request_check_hostname(ds->value)) {
440 TRACE (" Host header is invalid (Status: 400), was %s", SAFE_BUF_STR(ds->value));
441 con->http_status = 400;
442 con->keep_alive = 0;
443
444 return 0;
445 }

So if the host info in absoluteURI and in Host header are different, lighttpd will response 400.
But "RFC 2616 5.2 The Resource Identified by a Request" says:
If Request-URI is an absoluteURI, the host is part of the Request-URI, Any Host header field value in the request MUST be ignored.

I think lighttpd should not response 400.


Files


Related issues 1 (0 open1 closed)

Has duplicate Bug #1937: Bad requestFixed2009-03-16Actions
#2

Updated by peto almost 16 years ago

#5

Updated by gstrauss almost 9 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom