Closed ssduman closed 1 year ago
Hi @ssduman,
As described in the documentation the library support the next body types
Support postman “raw” body (Json and Text), “form-data” and “x-www-form-urlencoded”.
The only one that maybe can be a bug is the text that should be text/plain, I will review this one, the rest are still not supported sorry
Best regards
Hello,
When I try with differents requestBody (other than
application/json
), the result will always beapplication/json
no matter what. Here is a sample with all different test cases,text
,javascript
,json
,html
andxml
:And the results are here:
However, Postman sometimes do not add
options
as shown here (also above): How can we infer such situations?I tried to implement it in
lib/index.js
from lines 147 to 170, but a lot of tests failed.Here is the code snippet for your reference:
Note: I'm referring this example:
Thanks in advance.