Brian, I'm using Lighttpd for my fast downloads and I have not noticed this problem at all (CS:S, L4D and TF2) -- getting 200 responses back when users request a file, and then it serves it up... doesn't matter on format, either.
On Fri, Mar 27, 2009 at 3:05 PM, Brian Rak <[email protected]> wrote: > It would seem that the sv_downloadurl client does not conform to the > HTTP RFC, which causes issues on webservers that don't handle > misbehaving clients right (ex: lighttpd). The problem is an extra \r\n > sequence right after the Referer: field. This is not valid in HTTP get > requests.. only post. > > The current format looks like this: > GET /myserver/maps/de_dust3.bsp HTTP/1.1 > Accept: */* > Host: 192.168.3.89 > Referer: hl2://myserver:27015 > > User-Agent: Half-Life 2 > Connection: Keep-Alive > > it should be: > GET /myserver/maps/de_dust3.bsp HTTP/1.1 > Accept: */* > Host: 192.168.3.89 > Referer: hl2://myserver:27015 > User-Agent: Half-Life 2 > Connection: Keep-Alive > > This is a really simple fix, and I hope it's something that Valve can > fix for us. As it is now, trying to use lighttpd to serve > sv_downloadurl content will result in everyone getting 400 bad request > errors. I've managed to patch lighttpd to deal with this, but the patch > is hacky and mostly untested. If people want it, I can release it, but > it's stupid to need to patch the webserver over something as trivial as > this. > > - Brian "devicenull" Rak > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

