[Jifty-commit] jifty branch, master, updated. dd59d97f0e4eaf1daf7d95f88dda901ced83c9ab
Jifty commits
jifty-commit at lists.jifty.org
Sun May 2 08:12:25 EDT 2010
The branch, master has been updated
via dd59d97f0e4eaf1daf7d95f88dda901ced83c9ab (commit)
from b12215eb6aac95cbddd2da5023625a1604a40aef (commit)
Summary of changes:
lib/Jifty/Plugin/REST/Dispatcher.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit dd59d97f0e4eaf1daf7d95f88dda901ced83c9ab
Author: Chia-liang Kao <clkao at clkao.org>
Date: Sun May 2 20:08:24 2010 +0800
get headers from current response, so the REST streamy response has cookies
diff --git a/lib/Jifty/Plugin/REST/Dispatcher.pm b/lib/Jifty/Plugin/REST/Dispatcher.pm
index 63e0dca..6b32289 100644
--- a/lib/Jifty/Plugin/REST/Dispatcher.pm
+++ b/lib/Jifty/Plugin/REST/Dispatcher.pm
@@ -974,11 +974,12 @@ sub run_action_stream {
my $env = Jifty->web->request->env;
my $rec = $action->{record};
+ my $res = Jifty->web->response->finalize;
return sub {
my $responder = shift;
my $writer;
my $code = 200;
- my @headers;
+ my @headers = @{$res->[1]};
if ($action->result->success && $rec and $rec->isa('Jifty::Record') and $rec->id) {
my @fragments = ('model', ref($rec), 'id', $rec->id);
my $path = join '/', '=', map { Jifty::Web->escape_uri($_) } @fragments;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list