cherry-picking commit which adds multipart form capabilities to PATCH request