Merge pull request #24 from david-farrar/master

Fix handling of invalid HTTP requests