minor improvement

svn: r12931
This commit is contained in:
Eli Barzilay 2008-12-23 09:02:44 +00:00
parent 44aa4c25ef
commit c11196839b

View File

@ -378,13 +378,9 @@
(eq? 'windows (file-url-path-convention-type))
(not (equal? host "")))])
(when win-file?
(if (equal? "" port)
(set! path (string-append host ":" path))
(set! path (if path
(if host
(string-append host "/" path)
path)
host)))
(set! path (cond [(equal? "" port) (string-append host ":" path)]
[(and path host) (string-append host "/" path)]
[else (or path host)]))
(set! port #f)
(set! host ""))
(let* ([scheme (and scheme (string-downcase scheme))]