Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Uri format throws Malformed exception #8

Open
jojojames opened this issue Sep 16, 2017 · 0 comments
Open

Custom Uri format throws Malformed exception #8

jojojames opened this issue Sep 16, 2017 · 0 comments

Comments

@jojojames
Copy link

If using ring defaults with:

:absolute-redirects - Any redirects to relative URLs will be turned into redirects to absolute URLs, to better conform to the HTTP spec.

set to true,

Returning something like this:

  {:status 302
   :headers {"Location" (format "blah://blah?abc=%s" abc)}
   :body ""}

Will throw -> java.net.MalformedURLException: unknown protocol: blah

Copied from ring-clojure/ring#306 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant