/[Frey]/trunk/mojo-relax-url-chars.diff
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/mojo-relax-url-chars.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 654 - (hide annotations)
Mon Dec 1 12:43:33 2008 UTC (15 years, 5 months ago) by dpavlin
File size: 722 byte(s)
support + and | in URL which we need for pipes
1 dpavlin 633 diff --git a/lib/Mojo/Message/Request.pm b/lib/Mojo/Message/Request.pm
2 dpavlin 654 index 7b34661..c390d37 100755
3 dpavlin 633 --- a/lib/Mojo/Message/Request.pm
4     +++ b/lib/Mojo/Message/Request.pm
5     @@ -219,7 +219,7 @@ sub _parse_start_line {
6     ^\s* # Start
7     ([a-zA-Z]+) # Method
8     \s+ # Whitespace
9     - ([0-9a-zA-Z\$\-_\.\!\?\#\=\*\(\)\,\%\/\&\~]+) # Path
10 dpavlin 654 + ([0-9a-zA-Z\$\-_\.\!\?\#\=\*\(\)\,\%\/\&\~\:\+\|]+) # Path
11 dpavlin 633 (?:\s+HTTP\/(\d+)\.(\d+))? # Version (optional)
12     $ # End
13     /x

  ViewVC Help
Powered by ViewVC 1.1.26