Fixed a memory bug with PUT requests.