[HTTP Server 1] Having trouble with Content-Length header

20 months ago by

Hi guys,

Have you by any chance had problems with the header Content-Length?

I keep getting mismatch errors in the Chrome developer console. There seems to be a difference between the Content-Length which I send (calculated with Python's len()) and the actual length received by the browser. 

I suspect that it has something to do with how newlines characters are counted.

Any help would be appreciated! :)

1 Answer

20 months ago by

I had to add another \r\n before the content.

Just as they remind us in the instructions file! :)

Please login to add an answer/comment or follow this question.

Similar posts:
Search »