Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use Content_Type as other headers #72
This PR comes from a misuse I did : I tried to set the Content_Type header through with(CONTENT_TYPE, "xxx"). While not entirely wrong (with() set headers), documentation clearly states to use as() function.
My first solution was to call as() if with() was called with Content_Type header.
But, to ensure this problem doesn't occur anymore, I entirely removed the Result.contentType field and replaced it with a setter. Thus the only location of the Content_Type header is in the Result.headers map.