add function HTTP-URL-PATH->PATH-STRING (unparses path in http-url record into string)
This commit is contained in:
parent
e5c8cae17f
commit
da10de6309
|
@ -276,8 +276,14 @@
|
|||
|
||||
(string-append scheme-and-host-string port-string path-string query-string)))
|
||||
|
||||
;;; Unparse the http-url-path field of an http-url record into its corresponding part of the Request_URI
|
||||
|
||||
|
||||
(define (http-url-path->path-string http-url-path)
|
||||
(fold-right
|
||||
(lambda (segment res)
|
||||
(string-append "/" (escape-segment segment) res))
|
||||
""
|
||||
http-url-path))
|
||||
|
||||
;;; decoding and encoding Request-URIs:
|
||||
|
||||
|
|
Loading…
Reference in New Issue