Tell HN: Fiddler complains about Hacker News
Minor issue but I was debugging something else with Fiddler and it kept telling me this about responses from HN:
Fiddler has detected a protocol violation in session #122.
The Server did not return properly formatted HTTP Headers. HTTP headers should be terminated with CRLFCRLF. These were terminated with LFLF.
Presumably this is an issue in the Arc code outputting the headers. Also, is this where I should report this or is there a support email or something I can address?
2 comments
[ 3.4 ms ] story [ 14.3 ms ] threadQuick verification of that:
So, there are a couple of possible solutions: explicitly specify CRLF as line endings when needed (i.e. insert #\return), or have a special version of pr for network communication that does LF -> CRLF translation).Within the respond function there are other instances of using prn to send to the socket that need to be fixed:
I'm guessing that altering gen-type-header and creating a special prcrlf function is the way to go.