Added support to set the accept header to application/json