Tidy up http_put