change in proxy_handle_put to remove for-loop at the end, breaks cURL reply