No getContentEncoding method in TestHttpResponse

There was no such method for some reason, so I implemented it.
Also reimplemented getContentType, the previous version was incorrect due to case sensitivity.
Not sure if I should create a test for such a simple method (there was no test for getContentType either), but if you want one, I'll do that.