-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
From the README, I would expect the following proxied URLs for the various inputs:
;; wrap-proxy parameters
(wrap-proxy "/remote" "http://example.com/base")
;; I would expect the following in -> proxied URL
;; http://localhost/remote/hello.html ->
;; http://example.com/base/hello.html
;;
;; http://localhost/remote/dir/hello.html ->
;; http://example.com/base/dir/hello.htmlThis is what I expected going in from the example (I could be wrong) + from my experience with similar functionality in nginx.
To get this example to work, the local base url parameter to wrap-proxy has to end in a / to the the URI.resolve logic to achieve my expected output:
;; NOTE: /remote/ (trailing slash vs previous)
(wrap-proxy "/remote/" "http://example.com/base")I can submit a patch to meet my expected behavior, but is it the expected behavior?
Appreciate it!
notake
Metadata
Metadata
Assignees
Labels
No labels