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

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

Description

@Wojtasik

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions