Bugs and broken server fix

- Corrected: wrong header field name in http requests
- Added: auto detection of content encoding when none is provided and
redirected url path ends with .gz(ip)?