Fixed content-type register and added test.

Method could be (re)used in `new_url` and `default_headers`