use params given for header, if any

So that one can set {"Content-Type" => "application/json"} when putting or posting