ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

HTTP Body is not present in DELETE Request #8

Closed devilankur18 closed 8 years ago

devilankur18 commented 12 years ago

I am using the rack proxy to send data using the delete method. The the proxy source is not receiving the request without any body.

If I directly send the same request to proxied target then things are working as expected.

ncr commented 12 years ago

Seems like a bug :)

devilankur18 commented 11 years ago

@ncr Any suggestion on how to fix it or workarounds ?

mgwidmann commented 10 years ago

Perhaps the following in combination with line 80 could be the cause:

require 'net/http'      
puts Net::HTTP::Delete::REQUEST_HAS_BODY    # false

I don't think a body on a DELETE request is proper per the HTTP spec.