File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
branches/snap-stage3/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 1
1
---
2
2
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 03330baf9ca15d88e58753167b1eb40ca03cba78
4
+ refs/heads/snap-stage3: 1e3143b34e66ca5157b03d3658d64d7c01563186
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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