Refine HTTP modifications from JoshBones.