[Jifty-commit] jifty branch, master, updated. f0d1a8d106a6696e428ea43d627afeb363eabe55
Jifty commits
jifty-commit at lists.jifty.org
Fri Apr 16 02:42:41 EDT 2010
The branch, master has been updated
via f0d1a8d106a6696e428ea43d627afeb363eabe55 (commit)
from b84a8b0ff5817dbc165568a58cc9bf90286fa307 (commit)
Summary of changes:
lib/Jifty/Request.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit f0d1a8d106a6696e428ea43d627afeb363eabe55
Author: Chia-liang Kao <clkao at clkao.org>
Date: Fri Apr 16 14:42:45 2010 +0800
add referer and user_agent to be more plack::request-compatible.
diff --git a/lib/Jifty/Request.pm b/lib/Jifty/Request.pm
index 62c816a..0bf5929 100644
--- a/lib/Jifty/Request.pm
+++ b/lib/Jifty/Request.pm
@@ -45,6 +45,8 @@ sub header { shift->headers->header(@_) }
sub path { shift->uri->path(@_) }
sub content_length { shift->headers->content_length(@_) }
sub content_type { shift->headers->content_type(@_) }
+sub referer { shift->headers->referer(@_) }
+sub user_agent { shift->headers->user_agent(@_) }
use Jifty::JSON;
use Jifty::YAML;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list