Project

General

Profile

Bug #1291

FastCGI Status line get replaced

Added by bnickel about 12 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Hi, I'm developing the FastCGI ASP.NET server for Mono and I've come into a problem. When serving a static file, the ASP.NET responds with the following:

--
HTTP/1.1 304 Not Modified
Date: Wed, 08 Aug 2007 10:25:33 GMT
Content-Length: 0
Cache-Control: private
Content-Type: text/html; charset=utf-8
--

However, WireShark is telling me that the actual response from the server is "HTTP/1.1 200 OK ...", so images, CSS, etc become a blank page every other refresh. Lighttpd should use the status code provided by the server response, as 300 level response give instructions to the client.

Example.tar.gz (26.4 KB) Example.tar.gz An example application. bnickel, 2007-08-08 19:01
tcpdump (3.46 KB) tcpdump TCP dump of transaction with FastCGI and HTTP packets. bnickel, 2007-08-08 19:18

History

#1

Updated by darix about 12 years ago

do you have a test case?

#2

Updated by bnickel about 12 years ago

The above application starts a FastCGI server on port 9000 that responds to any request with:

--
HTTP/1.1 404 Not Found\r\nContent-type: text/html\r\n\r\nHi there
--

This request becomes "200 OK" when sent from Lighttpd to the browser. To run it, run "mono FastCgi301.exe".

I'll attach a tcpdump of the transaction.

#3

Updated by bnickel about 12 years ago

Oops. False alarm. I was sending the status incorrectly.

#4

Updated by darix about 12 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid
#5

Updated by stbuehler almost 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom