Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Content-Length: 0 for GET Requests #155

Merged
merged 1 commit into from Mar 20, 2014

Conversation

Projects
None yet
2 participants
Contributor

kevinpeterson commented Dec 22, 2013

Maybe this is intended behavior, but I was seeing a 'Content-Length: 0' being sent in the header for GET requests. From my interpretation of RFC 2616, 'Content-Length' should only set if there is a message body. I'm no expert in the spec, so it may in fact be fine, but I found it caused an error in a REST service I was documenting, so I checked into it a bit.

mansilladev added a commit that referenced this pull request Mar 20, 2014

Merge pull request #155 from kevinpeterson/master
Only add "Content-Length" header on POST/PUT calls.

@mansilladev mansilladev merged commit 9264e8f into mashery:master Mar 20, 2014

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