ashikahmad / restclient-tool

Automatically exported from code.google.com/p/restclient-tool
0 stars 0 forks source link

content-type with = inside is not working #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add content-type with = included, example: 
content-type=application/vnd.xyz.service+xml; charset=utf-8
2. make a request get, put, post, del
3. log request on destination will show an empty content-type

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.0.3, Win64

Please provide any additional information below.
without = in content-type it is working as expected
maybe any type of quoting can solve issue? Did not find anything.

Original issue reported on code.google.com by fly2mi...@googlemail.com on 27 Mar 2013 at 1:58

GoogleCodeExporter commented 9 years ago
Changing the line
keyValueArr = line.trim().split("=");
to
keyValueArr = line.trim().split("=",2);
in
public class RCUtil
should solve this issue for content-type

Original comment by fly2mi...@googlemail.com on 28 Mar 2013 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by a1yadu on 9 Jul 2013 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by a1yadu on 18 Jul 2013 at 7:58