koa-better-http-proxy icon indicating copy to clipboard operation
koa-better-http-proxy copied to clipboard

Can not proxy multipart request by default

Open zshwei opened this issue 5 years ago • 2 comments

By default, my multipart POST request (upload a file) gets lost, I don't see the parts of my request from the handler.

However, if I set the parseReqBody = false, then I can receive the multipart request from my handler correctly. But !!! the normal post like application/json get lost!

In brief, I can't let it proxy both multipart and application/json request at the same time.

Any ideas?

zshwei avatar Mar 15 '19 10:03 zshwei

I have the same problem. Have you managed to find a solution so far? @zshwei

iKonrad avatar Jul 28 '19 19:07 iKonrad

@zshwei @iKonrad and for those who'd encounter this in the future:

I solved the issue by updating scopeContainer.js like this

keymandll avatar Jul 19 '20 01:07 keymandll