From: Tomas Doran Date: Tue, 11 Aug 2009 22:32:47 +0000 (+0000) Subject: Apply patch from RT#48623 to fix headers in Engine::HTTP X-Git-Tag: 5.80008~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=269013540e2b182423770aabe3968b91ecda6f4e Apply patch from RT#48623 to fix headers in Engine::HTTP --- diff --git a/Changes b/Changes index f6bd37a..47949f6 100644 --- a/Changes +++ b/Changes @@ -12,6 +12,8 @@ - In tests which depend on the values of environment variables, localise the environment, then delete only relevant environment variables (RT#48555) + - Fix issue with Engine::HTTP not sending headers properly in some cases + (RT#48623) Refactoring / cleanups: - Deleted the Restarter engine and its Watcher code. Use the diff --git a/lib/Catalyst/Engine/HTTP.pm b/lib/Catalyst/Engine/HTTP.pm index 91fb0a8..efbf3ee 100644 --- a/lib/Catalyst/Engine/HTTP.pm +++ b/lib/Catalyst/Engine/HTTP.pm @@ -159,7 +159,7 @@ around write => sub { # Prepend the headers if they have not yet been sent if ( $self->_has_header_buf ) { $self->_warn_on_write_error( - $self->$orig($self->_clear_header_buf) + $self->$orig($c, $self->_clear_header_buf) ); }