Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Request is not proxied when form-data is used #115

Open
Wojtasik opened this issue Apr 24, 2022 · 0 comments
Open

Request is not proxied when form-data is used #115

Wojtasik opened this issue Apr 24, 2022 · 0 comments

Comments

@Wojtasik
Copy link

I have noticed an issue when trying to send a request with multipart/form-data:
image

Setup description:
Main server: localhost:3000 (simple express app with one endpoint).
Dyson running on port 8000.

config:

{
  "proxy": true,
  "proxyHost": "http://localhost",
  "proxyPort": 3000
}

When using postman and sending a request (as presented above) I'm getting no answer from the main server (it is not proxied through the Dyson and it is not arriving to the main server).
Using raw body (json) everything works OK.

I found this behaviour while trying to proxy a file but I think the issue could be related to the multipart/form-data.

I was digging into the code base and found the proxy.js file which is using request to do the proxy - wondering if there need to be more data provided to make it work with the multipart?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant