net/url: trim whitespace when getting enviornment variables like http_proxy
For compatibility with other systems, trmi whitespace from environment variables. Closes #2663
This commit is contained in:
parent
6f1875c384
commit
0eeb8d26f3
|
@ -44,7 +44,8 @@
|
|||
;; proxied-scheme
|
||||
(define (env->c-p-s-entries . envarses)
|
||||
(define (in1 proxied-scheme envvar)
|
||||
(match (getenv envvar)
|
||||
(match (let ([s (getenv envvar)])
|
||||
(and s (string-trim s)))
|
||||
[#f #f]
|
||||
["" null]
|
||||
[(app string->url*
|
||||
|
|
Loading…
Reference in New Issue
Block a user