Refactors metsrv patching in reverse_http.rb