RESTEDClient / RESTED

A REST client for browsers
GNU General Public License v3.0
293 stars 43 forks source link

FireFox: Multiple forward slashes tuncated from body when using JSON Request Type with POST #170

Open gary-jipp opened 4 years ago

gary-jipp commented 4 years ago

When sending a POST request with JSON Request body type, RESTED appears to strip double slashes from the JSON body. This does not happen when sending the Request as a Custom body type. This was noticed when sending base64 encoded images.

Note: this appears to be related to issue #119 but affects the body instead of the headers.

Steps to reproduce:

Interestingly, the first double slash is preserved but subsequent ones are converted to single slash. The same happens with 3 slashes. Didn't test with more than 3

Modify the same request but with body type of Custom: {"mydata":"//This is a //test"} Response from postman-echo: { "args": {}, "data": { "mydata": "//This is a //test" }, ...

In this case the correct data is sent.