projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e7f28
)
Restore printing strings in #[uri ...].
author
Taylor R Campbell
<campbell@mumble.net>
Wed, 9 Jan 2019 03:49:23 +0000
(
03:49
+0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Wed, 9 Jan 2019 03:56:36 +0000
(
03:56
+0000)
src/runtime/url.scm
patch
|
blob
|
history
diff --git
a/src/runtime/url.scm
b/src/runtime/url.scm
index 4b76d633144e3eecd60382c3982fb234ade41962..abccf69e6eb5bb738c37e099e4a38a57fb5cfcb0 100644
(file)
--- a/
src/runtime/url.scm
+++ b/
src/runtime/url.scm
@@
-41,6
+41,11
@@
USA.
(fragment uri-fragment)
(string uri->string))
+(define-print-method uri?
+ (standard-print-method 'uri
+ (lambda (uri)
+ (list (uri->string uri)))))
+
(define (make-uri scheme authority path query fragment)
(let ((path (if (equal? path '("")) '() path)))
(if scheme (guarantee uri-scheme? scheme 'make-uri))