kshitizmittal / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Impossible to send request without or invalid Content-Type header. #341

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Send the request and don't add any headers.

I expected that rest assured will send request without any headers. Instead of 
this assured is adding default header of Content-Type which I don't want it.

2. Add header for e.g. Content-Type/testingName and send request.

I expected that assured will send request but it is trying to encode it and I 
got "Don't know how to encode" error.

I didn't found any solution for this issues. Not on this page and not while 
searching by google :(

I'm using version 2.3.0 on Win8.

I know that Content-Type should be set, but I want to test some service, and my 
test case require missing Content-Type or invalid. So I would be great to have 
that possibility. At least activating some additional flag.

Original issue reported on code.google.com by kaliba...@gmail.com on 26 Jun 2014 at 12:41

GoogleCodeExporter commented 8 years ago
It's not supported right now but I see no reason for not supporting it. If you 
like please try to help out with a pull request.

Original comment by johan.ha...@gmail.com on 5 Jul 2014 at 5:07

GoogleCodeExporter commented 8 years ago

Original comment by johan.ha...@gmail.com on 5 Jul 2014 at 5:08