fix #1760
fix  Content-Type overriding issue  #1760
Merge pull request #1762 from MidnightWonderer/master

fix content-type overriding issue #1760.