Inspired by yesterdays code reading, polish up the HTTP protocol
parser a little bit, and nail a couple of corner cases.