bug: set content-type header pre-remote