Fix detection of incomplete HTTP requests

Fixes #53.
Merge pull request #77 from dlundquist/fix-framented-requests

Fix detection of incomplete HTTP requests