File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
branches/dist-snap/src/libstd Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
- refs/heads/dist-snap: 03330baf9ca15d88e58753167b1eb40ca03cba78
10
+ refs/heads/dist-snap: 1e3143b34e66ca5157b03d3658d64d7c01563186
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
12
12
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -537,7 +537,8 @@ fn get_path(rawurl: ~str, authority : bool) ->
537
537
for str:: each_chari( rawurl) |i, c| {
538
538
match c {
539
539
'A' to 'Z' | 'a' to 'z' | '0' to '9' | '&' |'\'' | '(' | ')' | '.'
540
- | '@' | ':' | '%' | '/' | '+' | '!' | '*' | ',' | ';' | '=' => {
540
+ | '@' | ':' | '%' | '/' | '+' | '!' | '*' | ',' | ';' | '='
541
+ | '_' => {
541
542
again;
542
543
}
543
544
'?' | '#' => {
@@ -795,6 +796,14 @@ mod tests {
795
796
assert url. path == ~"/";
796
797
}
797
798
799
+ #[ test]
800
+ fn test_url_with_underscores ( ) {
801
+ let urlstr = ~"http: //dotcom.com/file_name.html";
802
+ let url = from_str ( urlstr) . get ( ) ;
803
+ #debug ( "url: %?" , url) ;
804
+ assert url. path == ~"/file_name. html ";
805
+ }
806
+
798
807
#[ test]
799
808
fn test_no_scheme ( ) {
800
809
assert result:: is_err ( get_scheme ( ~"noschemehere. html ") ) ;
You can’t perform that action at this time.
0 commit comments