Fixed bug causing multipart PUT request to be replaced with POST