ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.34k stars 177 forks source link

DELETE method with no response body or cached methods do not appear under JSON filter. #2047

Open nk-tedo-001 opened 3 weeks ago

nk-tedo-001 commented 3 weeks ago

Description

DELETE with no body response and cached method goes to the Other tab.

Steps to Reproduce

Call DELETE on the endpoint that returns 204 No Content with an empty body response. Call any endpoint that responds with 304 Not Modified.

Current Behavior

This request will appear in the Other tab.

image

Expected Behavior

Also show it in JSON Filter tab. Cached request could be doubted but I think that DELETE should definitely be shown ubder JSON tab.

Environment

NghiaTranUIT commented 3 weeks ago

it's correct behavior. Your Request or Response Body aren't a JSON Body, so it doesn't show in the JSON Tab.

Can you show me what the Content-Type of your Response? If it's application/json, it should show in the JSON Tab.

nk-tedo-001 commented 3 weeks ago

Can you show me what the Content-Type of your Response? If it's application/json, it should show in the JSON Tab.

It is empty so it has no Content-Type header.

If it is intended for the JSON tab, so can we have new tab like XHR in the Firefox devtools that will handle all such kind of requests?

image