axios-logger icon indicating copy to clipboard operation
axios-logger copied to clipboard

URLSearchParams not shown in log

Open liukaigsx opened this issue 2 years ago • 4 comments

Describe the bug URLSearchParams not shown in log

To Reproduce Steps to reproduce the behavior: await axiosInstance.post('http://xxxxx/hello', new URLSearchParams({ a: 1, b: 2 }));

[Axios][Request] POST http://xxxxx/hello {}

Expected behavior [Axios][Request] POST http://xxxxx/hello a=1&b=2

liukaigsx avatar Mar 16 '23 06:03 liukaigsx

@liukaigsx Thank you for your feedback. The current implementation is not processed for objects in URLSearchParams. I'll think about supporting this part.

hg-pyun avatar Apr 04 '23 13:04 hg-pyun

@hg-pyun Hi, I add pull request. check it, please. I need this feature too.

antirek avatar Jun 26 '24 10:06 antirek

@antirek Thank you for PR!, I will see this soon.

hg-pyun avatar Jun 30 '24 06:06 hg-pyun

@hg-pyun add some comments

antirek avatar Jul 09 '24 09:07 antirek