opendiffy / diffy

Other
1.25k stars 142 forks source link

Add support for requests with content-type application/x-www-form-urlencoded and multipart/form-data #77

Open November22 opened 1 year ago

November22 commented 1 year ago

When i add a header "content-type" as the value is "application/x-www-form-urlencoded", diffy system could not get the request body.

postman: image

diffy: image

puneetkhanduri commented 1 year ago

application/x-www-form-urlencoded and multipart/form-data are currently not supported.

I invite you to take a look at how reactor can support your use case here.

and contribute a patch to Diffy here.

November22 commented 1 year ago

Thank you for your invitation. The branch tag I use is 22.10.13.00, which will cause such problems. This problem does not occur when I use the current master branch.

The equals method of the screenshot will not take effect.

image

I use a translation tool. Please forgive me for any inaccuracies。

puneetkhanduri commented 1 year ago

Thanks for pointing this out. The fix has been pushed to master.

abhishek1811 commented 1 year ago

@puneetkhanduri I am having the same issue if pass the host header as well.

abhishek1811 commented 1 year ago

@puneetkhanduri - It looks when we send Host header in the request, it is short circuiting the request or may be an exception is happening