TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Bug in Hacker News ResponseStatusLine

3 pointsby pjalmost 16 years ago
<i>Could not load feed - The server committed a protocol violation. Section=ResponseStatusLine</i><p>Looks like the web server isn't sending back enough headers:<p><pre><code> HTTP/1.x 200 OK Content-Type: text/html; charset=utf-8 Connection: close </code></pre> Where are Content-Length, Last-Modified, etc?<p>Should be more detailed like this one from google.com:<p><pre><code> HTTP/1.x 200 OK Content-Type: image/x-icon Last-Modified: Fri, 09 Jan 2009 16:35:02 GMT Date: Fri, 05 Jun 2009 17:40:31 GMT Expires: Sat, 05 Jun 2010 17:40:31 GMT Cache-Control: public, max-age=31536000 Server: gws Content-Length: 1150 Age: 1 </code></pre> Or this one:<p><pre><code> HTTP/1.x 200 OK Cache-Control: private, max-age=0 Date: Fri, 05 Jun 2009 17:40:31 GMT Expires: -1 Content-Type: text/html; charset=UTF-8 Content-Encoding: gzip Server: gws Content-Length: 3279</code></pre>

1 comment

pgalmost 16 years ago
Sounds like you have a very picky feed reader. Which one is it? And what specifically is it complaining about?<p>Does anyone know if the http protocol actually mandates more header lines than we're supplying?
评论 #643781 未加载
评论 #643797 未加载
评论 #643676 未加载