Request body not included in params when issuing a PATCH request

The params variable does not contain parameters contained in the request body when issuing a PATCH request. Commit fixes this issue.