Revert "fix small ruby 1.8.7 incompatibility"

This reverts commit edd50b87fba5c36405a91983bc768dceea4134d8.
Revert "ensure Content-Type header comes first"

This reverts commit 40319c4ba8f6b194d5d221d549a3b524911d970d.