Fix bugs in URL parsing and truncation of request content
Merge pull request #4 from 3wks/fix/http-mock

Fix bugs in URL parsing and truncation of request content