Re: [Catalyst] HTTP headers returned from GET vs HEAD

2014-05-01 Thread John Napiorkowski
Content Length auto detection was moved from Catalyst core to middleware in a recent build of Catalyst.  Its likely that the view you are using isn't bothering to set the length and the middleware is failing to provide it properly since the Head middleware has already removed it. Since the

Re: [Catalyst] HTTP headers returned from GET vs HEAD

2014-05-01 Thread John Napiorkowski
Hey, So when I was looking at this it seemed to me the order of the middleware stack was correct, so I wrote a quick test case: https://github.com/perl-catalyst/catalyst-runtime/blob/master/t/head_middleware.t and it does seem to me that this works as desired (if you have an action that

[Catalyst] HTTP headers returned from GET vs HEAD

2014-04-23 Thread Trevor Leffler
I've been playing with a toy application and inspecting its responses to various HTTP methods and noticed that Content-Length is missing from the HEAD response. Both Catalyst::Action::RenderView and C::A::Serialize (from the C::A::REST package) seem to take the easy way out and return 1 if