Investigate Content Type when caching API requests #1593
Labels
closed/wontfix
This issue was closed because we have decided not to make the suggested changes
kind/bug
This issue represents a verified problem we are committed to solving
When enabling caching with HttpClient to interact with your service all requests that are cached are failing to be parsed as JSON due to their Content-Type being text/plain instead of applicaiton/json. I think this is because octopus deploy is setting Content-Type to text/plain in the 304 responses and the cache is being updated to reflect that (or something). In Fiddler I am able to set a rule to modify the requests for our octopus server that removes the Content-Type header for 304 responses and things work fine.
Repro: https://gist.github.com/aarondandy/ee11865494c4b1ea5004
Source: http://help.octopusdeploy.com/discussions/problems/33608
The text was updated successfully, but these errors were encountered: