r70816 - in /trunk/libhttp-parser-perl: Changes META.yml Parser.pm debian/changelog debian/compat debian/control debian/copyright t/1.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Tue Mar 8 00:28:19 UTC 2011
Author: jawnsy-guest
Date: Tue Mar 8 00:28:08 2011
New Revision: 70816
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70816
Log:
looks good, dch -r
Modified:
trunk/libhttp-parser-perl/Changes
trunk/libhttp-parser-perl/META.yml
trunk/libhttp-parser-perl/Parser.pm
trunk/libhttp-parser-perl/debian/changelog
trunk/libhttp-parser-perl/debian/compat
trunk/libhttp-parser-perl/debian/control
trunk/libhttp-parser-perl/debian/copyright
trunk/libhttp-parser-perl/t/1.t
Modified: trunk/libhttp-parser-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/Changes?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/Changes (original)
+++ trunk/libhttp-parser-perl/Changes Tue Mar 8 00:28:08 2011
@@ -1,4 +1,7 @@
Revision history for Perl extension HTTP::Parser.
+
+0.06 2011-03-06
+ - fix by frodwith for rt.cpan.org #66298 (path string parsing)
0.05 2009-11-13
- two fixes by David Cannings <david at edeca.net>
Modified: trunk/libhttp-parser-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/META.yml?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/META.yml (original)
+++ trunk/libhttp-parser-perl/META.yml Tue Mar 8 00:28:08 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: HTTP-Parser
-version: 0.05
+version: 0.06
abstract: parse HTTP/1.1 request into HTTP::Request/Response object
author:
- David. B. Robins <dbrobins at davidrobins.net>
Modified: trunk/libhttp-parser-perl/Parser.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/Parser.pm?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/Parser.pm (original)
+++ trunk/libhttp-parser-perl/Parser.pm Tue Mar 8 00:28:08 2011
@@ -35,7 +35,7 @@
package HTTP::Parser;
-our $VERSION = '0.05';
+our $VERSION = '0.06';
use HTTP::Request;
use HTTP::Response;
@@ -260,6 +260,12 @@
unless $http and $http =~ /^HTTP\/(\d+)\.(\d+)$/i;
($major,$minor) = ($1,$2);
die 'HTTP requests not allowed' unless $self->{request};
+
+ # If the Request-URI is an abs_path, we need to tell URI that we don't
+ # know the scheme, otherwise it will misinterpret paths that start with
+ # // as being scheme-relative uris, and will interpret the first
+ # component after // as the host (see rfc 2616)
+ $uri = "//$uri" if $uri =~ m(^/);
$obj = $self->{obj} = HTTP::Request->new($method, URI->new($uri));
}
Modified: trunk/libhttp-parser-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/debian/changelog?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/debian/changelog (original)
+++ trunk/libhttp-parser-perl/debian/changelog Tue Mar 8 00:28:08 2011
@@ -1,8 +1,17 @@
-libhttp-parser-perl (0.05-2) UNRELEASED; urgency=low
+libhttp-parser-perl (0.06-1) unstable; urgency=low
+ [ Ansgar Burchardt ]
* Update my email address.
- -- Ansgar Burchardt <ansgar at debian.org> Mon, 01 Nov 2010 11:16:51 +0100
+ [ Jonathan Yu ]
+ * New upstream release
+ * Rewrite control description
+ * Refresh copyright information
+ * Bump to debhelper compat 8
+ * Standards-Verison 3.9.1 (no changes)
+ * Email change: Ansgar Burchardt -> ansgar at debian.org
+
+ -- Jonathan Yu <jawnsy at cpan.org> Mon, 07 Mar 2011 19:52:24 -0500
libhttp-parser-perl (0.05-1) unstable; urgency=low
Modified: trunk/libhttp-parser-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/debian/compat?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/debian/compat (original)
+++ trunk/libhttp-parser-perl/debian/compat Tue Mar 8 00:28:08 2011
@@ -1,1 +1,1 @@
-7
+8
Modified: trunk/libhttp-parser-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/debian/control?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/debian/control (original)
+++ trunk/libhttp-parser-perl/debian/control Tue Mar 8 00:28:08 2011
@@ -1,20 +1,23 @@
Source: libhttp-parser-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: perl, liburi-perl, libwww-perl
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl,
+ liburi-perl,
+ libwww-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jonathan Yu <jawnsy at cpan.org>, Ansgar Burchardt <ansgar at debian.org>
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
Homepage: http://search.cpan.org/dist/HTTP-Parser/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libhttp-parser-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libhttp-parser-perl/
Package: libhttp-parser-perl
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, liburi-perl, libwww-perl
-Description: HTTP request and response parser
- HTTP::Parser is a Perl module that can take chunks of text as received and
- return a constructed HTTP::Request object once a complete request has been
- read. It also supports chunked encoding per HTTP/1.1. It throws an exception
- upon error.
+Depends: ${perl:Depends}, ${misc:Depends},
+ liburi-perl,
+ libwww-perl
+Description: module for parsing HTTP requests and responses
+ HTTP::Parser is a Perl module for parsing HTTP requests and responses out of
+ streams, returning an HTTP::Request or HTTP::Response object as appropriate.
+ It also supports HTTP/1.1's chunked encoding.
Modified: trunk/libhttp-parser-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/debian/copyright?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/debian/copyright (original)
+++ trunk/libhttp-parser-perl/debian/copyright Tue Mar 8 00:28:08 2011
@@ -1,25 +1,29 @@
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
-Maintainer: David Robins <dbrobins at davidrobins.net>
+Maintainer: David. B. Robins <dbrobins at davidrobins.net>
Source: http://search.cpan.org/dist/HTTP-Parser/
Name: HTTP-Parser
-Copyright: 2004-2007, David B. Robins <dbrobins at davidrobins.net>
+Files: *
+Copyright: 2004-2007, David. B. Robins <dbrobins at davidrobins.net>
License: Artistic or GPL-1+
Files: debian/*
-Copyright: 2009, Jonathan Yu <jawnsy at cpan.org>
+Copyright: 2009-2011, Jonathan Yu <jawnsy at cpan.org>
+ 2010, Ansgar Burchardt <ansgar at debian.org>
License: Artistic or GPL-1+
License: Artistic
- This program is free software; you can redistribute it and/or modify
- it under the terms of the Artistic License, which comes with Perl.
- On Debian GNU/Linux systems, the complete text of the Artistic License
- can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 1, or (at your option)
- any later version.
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
Modified: trunk/libhttp-parser-perl/t/1.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhttp-parser-perl/t/1.t?rev=70816&op=diff
==============================================================================
--- trunk/libhttp-parser-perl/t/1.t (original)
+++ trunk/libhttp-parser-perl/t/1.t Tue Mar 8 00:28:08 2011
@@ -4,7 +4,7 @@
#########################
use strict;
-use Test::More tests => 21;
+use Test::More tests => 22;
# <1>
BEGIN { use_ok('HTTP::Parser') };
@@ -77,3 +77,7 @@
is($res->content, "Some content!\x0d\x0a", 'content is correct');
}
+# <1>
+$parser = HTTP::Parser->new(request => 1);
+$parser->add("GET //foo///bar/baz HTTP/1.1\x0d\x0a\x0d\x0a");
+is $parser->request->uri->path, '//foo///bar/baz';
More information about the Pkg-perl-cvs-commits
mailing list