Remove trailing newline from test data
XMLHttpRequest does not have a close method
Merge pull request #57 from tomhughes/request-protocol

Fix issues in test-request-protocols