add Content-Type header for PUT/POST; edits