482855 - Content-Length omitted for POST requests with empty body

fixed merge
This commit is contained in:
Greg Wilkins 2015-11-25 15:37:59 +11:00
parent e78fcb59a4
commit ab93529f6d
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ public class HttpGeneratorClientTest
Assert.assertEquals(HttpGenerator.State.START, gen.getState());
Info info = new Info("POST","/index.html");
info.getHttpFields().add("Host","something");
info.getHttpFields().add("User-Agent","test");
info.getFields().add("Host","something");
info.getFields().add("User-Agent","test");
Assert.assertTrue(!gen.isChunking());
result=gen.generateRequest(info,null,null,null, true);