Set header for json content only for post, patch and put