Reversing logic of uri-has-scheme?.

This commit is contained in:
Alex Shinn 2014-05-27 06:55:31 +09:00
parent 5246763c8b
commit 719af372f9

View file

@ -199,8 +199,7 @@
(define uri-has-scheme?
(let ((no-scheme (list 'no-scheme)))
(lambda (url)
(and url
(eq? no-scheme (uri-scheme (string->path-uri no-scheme url)))))))
(not (eq? no-scheme (uri-scheme (string->path-uri no-scheme url)))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; query encoding and decoding