fixed ill-formed HTTP requests in a recently-added test case, which caused issues under the "check leaks" testing mode.