diff --git a/lib/bettercap/proxy/http/streamer.rb b/lib/bettercap/proxy/http/streamer.rb index e002e422..59c29e10 100644 --- a/lib/bettercap/proxy/http/streamer.rb +++ b/lib/bettercap/proxy/http/streamer.rb @@ -203,6 +203,13 @@ def do_POST(req, res) end end + # Handle a PUT request, +req+ is the request object and +res+ the response. + def do_PUT(req, res) + perform_proxy_request(req, res) do |http, path, header| + http.put(path, req.body || "", header) + end + end + end end end