ProxymanApp / ProxymanApp/Proxyman
Scripting error when application uses wrong content-type
Open
@NghiaTranUIT is already working on this.
Since May 21, 2021.
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
Proxyman version? (Ex. Proxyman 1.4.3)
2.25.0 (22500)
macOS Version? (Ex. mac 10.14)
mac 11.3.1
Steps to reproduce
The application sends an invalid JSON object with Content-Type=application/json. I want to log this value.
function onRequest(context, url, request) {
console.log(request);
return request;
}
I'm getting this error:
Error: Invalid JSON Object from given body. (Content-Type=application/json)
Expected behavior
Add a way to pass invalid body data with application/json content-type (maybe a flag ignoreContentType or something of that nature).
Workarounds are also welcome (I can't fix the body, the app's server expects the invalid values).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.