Ticket #1397 (new defect)

Opened 10 months ago

Last modified 9 months ago

lighty sends 301 moved permanently if User-Agent is missing or not correct

Reported by: stefan@musicpictures.com Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.15
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 1

Description

While testing with telnet I saw that using Get / HTTP/1.1 Host: www.test.me

does always return a 301 with location set to http://www.test.me/, so maybe creating an infinite loop. I think it shouldn't do that...

Attachments

Change History

10/02/2007 04:51:39 PM changed by jrabbit

You must have a configuration error - HTTP requests that only provide a Host: header work fine. Also, how on earth do you make the leap from this behaviour to the User-Agent header being a factor?

10/02/2007 05:28:04 PM changed by stefan@musicpictures.com

Configuration might be a reason, however, the server runs fine otherwise. So I guess it should not behave like that. Anyway, the 'leap' I make is simple: If I add a User-Agent header, I get the normal expected behaviour, if it's missing I get the behaviour described above. My configuration includes simple vhosting through rewriting the url after checking the host.

10/11/2007 01:29:41 PM changed by Olaf van der Spek

  • pending set to 1.

I can't reproduce this: GET / HTTP/1.1 Host: xwis.net

HTTP/1.1 200 OK Vary: Accept-Encoding Content-Type: text/html Accept-Ranges: bytes ETag: "534884459" Last-Modified: Fri, 05 Oct 2007 11:12:16 GMT Content-Length: 1425 Date: Thu, 11 Oct 2007 13:28:46 GMT Server: lighttpd/1.4.18


Add/Change #1397 (lighty sends 301 moved permanently if User-Agent is missing or not correct)




Change Properties