When I make a GET
request that passes through grunt-connect-proxy
that returns a 204, no content-type is set. If I make the same request but instead using PUT
, grunt-connect-proxy
(or grunt-contrib-connect
- i don't know) is attaching Content-type: application/json
to the response automatically. This is a problem because 1) There is no content so it's inaccurate to say the content-type is anything. and more importantly 2) Angular tries to parse the empty response as JSON which breaks my application.
I've tested the endpoint through my browser and the actual server is not sending this additional information back.
How do I prevent grunt-connect-proxy
(or grunt-contrib-connect
) from adding a content type to a 204 No Content
response?