Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix errors made during compojure 0.3.x - 0.4.x upgrade

  • Loading branch information...
commit 38940f043e1994a780cb6443ab5c2b92d2090bdb 1 parent 3c80810
@stuarthalloway stuarthalloway authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/solutions/mini_browser.clj
View
4 src/solutions/mini_browser.clj
@@ -37,7 +37,7 @@
(defn var-link
[ns-name var-name]
- [:a {:href (str "/browse/" ns-name "/" (encode-params (str var-name)))} var-name])
+ [:a {:href (str "/browse/" ns-name "/" (java.net.URLEncoder/encode (str var-name)))} var-name])
(defn var-browser
[ns vars]
@@ -96,7 +96,7 @@
(GET
"/browse/*"
request
- (let [[ns var] (str/split (request :params) #"/")]
+ (let [[ns var] (str/split (get-in request [:params "*"]) #"/")]
(html
(layout
(namespace-browser (namespace-names))
Please sign in to comment.
Something went wrong with that request. Please try again.