axios-logger
axios-logger copied to clipboard
URLSearchParams not shown in log
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 Thank you for your feedback. The current implementation is not processed for objects in URLSearchParams. I'll think about supporting this part.
@hg-pyun Hi, I add pull request. check it, please. I need this feature too.
@antirek Thank you for PR!, I will see this soon.
@hg-pyun add some comments