1
0
Fork 0

Allow scheme-relative URIs in urlish?

* tekuti/util.scm (urlish?): Allow scheme-relative URIs.
This commit is contained in:
Andy Wingo 2014-10-15 09:46:53 +02:00
parent c087e7b6fa
commit c631aaf35c

View file

@ -1,5 +1,5 @@
;; Tekuti
;; Copyright (C) 2008, 2010, 2011, 2012 Andy Wingo <wingo at pobox dot com>
;; Copyright (C) 2008, 2010, 2011, 2012, 2014 Andy Wingo <wingo at pobox dot com>
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@ -62,7 +62,7 @@
(define (urlish? x)
(let ((uri (string->uri x)))
(and uri
(memq (uri-scheme uri) '(http https))
(memq (uri-scheme uri) '(#f http https))
(uri-host uri)
#t)))