Fixed issue with Content-Type being set incorrectly.