Fix #138: validate HTTP headers.
Merge pull request #139 from mmaker/master

Fix #138: validate HTTP headers.