let body of post extension pass through without the to_json if headers are not nil