Fixed bug causing multipart PUT request to be replaced with POST

Due to a small logic error in HTTPRequestSerializer.createRequest(), multi-part form requests were being replaced with .POST when calling the PUT function.