Fix end-of-headers marker detection
Merge pull request #273 from smfreegard/master

Fix end-of-headers marker detection