Mercurial Hosting > luan
comparison src/luan/lib/webserver/RequestParser.java @ 1371:4c5548a61d4f
add Request.originalPath
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 26 Jun 2019 19:14:13 -0600 |
parents | 643cf1c37723 |
children |
comparison
equal
deleted
inserted
replaced
1370:ba4fc39423a4 | 1371:4c5548a61d4f |
---|---|
71 int start = parser.currentIndex(); | 71 int start = parser.currentIndex(); |
72 if( !parser.match('/') ) | 72 if( !parser.match('/') ) |
73 throw new ParseException(parser,"bad path"); | 73 throw new ParseException(parser,"bad path"); |
74 while( parser.noneOf(" ?#") ); | 74 while( parser.noneOf(" ?#") ); |
75 request.path = urlDecode( parser.textFrom(start) ); | 75 request.path = urlDecode( parser.textFrom(start) ); |
76 request.originalPath = request.path; | |
76 } | 77 } |
77 | 78 |
78 private void parseQuery() throws ParseException { | 79 private void parseQuery() throws ParseException { |
79 do { | 80 do { |
80 int start = parser.currentIndex(); | 81 int start = parser.currentIndex(); |