Automatically add Content-Type header

When sending JSON object and not defining Content-Type header,
inject "Content-Type": "application/json".