Changeset 13108 in project for release/4/uri-generic
- Timestamp:
- 01/26/09 22:19:24 (12 years ago)
- Location:
- release/4/uri-generic/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release/4/uri-generic/trunk/tests/run.scm
r12923 r13108 108 108 ("http://a/b/c/d/" "../e/" "http://a/b/c/e/") 109 109 ("http://a/b//c///d///" "..//.." "http://a/b/") 110 ("http://a" "b" "http://a/b") ; RFC3986, section 5.2.3, first bullet point 110 111 )) 111 112 -
release/4/uri-generic/trunk/uri-generic.scm
r13105 r13108 823 823 path: (just-segments ref) 824 824 scheme: (uri-scheme base))) 825 (( (lambda (p) (and (not (null? p)) p)) (uri-path ref)) =>825 ((let ((p (uri-path ref))) (and (not (null? p)) p)) => 826 826 (lambda (ref-path) 827 827 (if (and (pair? ref-path) (eq? '/ (car ref-path))) … … 855 855 (let ((ba (uri-authority b)) 856 856 (pb (uri-path b))) 857 (let ((mp (if (and ba (null? pb)) pr (merge0 pb pr)))) 857 (let ((mp (if (and ba (null? pb)) 858 (merge0 '(/ "") pr) ; RFC3986, section 5.2.3, first bullet 859 (merge0 pb pr)))) 858 860 (remove-dot-segments mp)))) 859 861
Note: See TracChangeset
for help on using the changeset viewer.