UnionOfRAD/lithium — pull request #599 by omeryar (2012-07-27 21:43:53+00:00)
Title: Set request type before setting body

having the body set before the type meant the body was encoded as html
no matter what the type actually is.