AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

"Cannot set headers after they are sent to the client" when sending multipart/form-data POST request #156

Closed wurmser-f closed 1 year ago

wurmser-f commented 1 year ago

Hello,

I cannot seem to be able to send multipart/form-data POST requests, I always hit the following error :

"Cannot set headers after they are sent to the client"

All other requests work fine.

AnWeber commented 1 year ago

I think that is not a mistake in my extension. My example for multipart-formdata still works correctly. Additionally, this is actually an error that is reported by the server rather than generated by the client. I know it using express.js (https://stackoverflow.com/questions/7042340/error-cant-set-headers-after-they-are-sent-to-the-client) If you still think it's a client-side error, I'd need an example of how to trigger that.