Skip Menu |

This queue is for tickets about the Plack-App-Proxy CPAN distribution.

Report information
The Basics
Id: 65698
Status: resolved
Priority: 0/
Queue: Plack-App-Proxy

People
Owner: Nobody in particular
Requestors: onken [...] netcubed.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.17
Fixed in: (no value)



Subject: Doesn't work for GET requests with a body
Hi, I have put together this minimal test case which shows that the Proxy stalls on GET requests which have a body: # plackup -MPlack::App::Proxy -e 'Plack::App::Proxy->new(remote => "http://127.0.0.1:9200")->to_app' # curl -XGET http://localhost:5000/ -d 'BODY' I works just fine when I do # curl -XPOST http://localhost:5000/ -d 'BODY' Cheers, mo
I believe this was discovered in IRC to be an issue with Twiggy not reading the body for GET requests but keeping the Content-Length. We *could* recalculate the Content-Length before proxying, but I think this is better fixed in Twiggy. Twiggy issue is here: https://github.com/miyagawa/Twiggy/issues#issue/13
I agree. I filed the report before the discussion on irc started. Sorry for the inconvenience. Am So 13. Feb 2011, 12:46:52, PERLER schrieb: Show quoted text
> Hi, > > I have put together this minimal test case which shows that the Proxy > stalls on GET requests > which have a body: > > # plackup -MPlack::App::Proxy -e 'Plack::App::Proxy->new(remote => > "http://127.0.0.1:9200")->to_app' > > # curl -XGET http://localhost:5000/ -d 'BODY' > > I works just fine when I do > > # curl -XPOST http://localhost:5000/ -d 'BODY' > > Cheers, > mo