Skip to content

Commit

Permalink
Merge pull request #6 from markbeaton/patch-1
Browse files Browse the repository at this point in the history
Headers are now written in the case of an empty output stream.
  • Loading branch information
mzabani committed Jun 24, 2015
2 parents 9203a38 + e021956 commit 7d92bce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Fos/Listener/FosRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ public Task ProcessRequest()
}
else
{
// If no data has been written (e.g. 304 w/- empty response), the headers won't have been written
if (stdout.Length == 0)
{
SendHeaders();
}

// Signal successful return status
SendEndRequest(0, ProtocolStatus.RequestComplete);
}
Expand Down

0 comments on commit 7d92bce

Please sign in to comment.