Apply patch from RT#48623 to fix headers in Engine::HTTP
Tomas Doran [Tue, 11 Aug 2009 22:32:47 +0000 (22:32 +0000)]
Changes
lib/Catalyst/Engine/HTTP.pm

diff --git a/Changes b/Changes
index f6bd37a..47949f6 100644 (file)
--- 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
index 91fb0a8..efbf3ee 100644 (file)
@@ -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)
         );
     }