Permalink
Browse files

Merge remote-tracking branch 'raynes/develop' into develop

  • Loading branch information...
2 parents 1916457 + 0488e5d commit 93347835239a634e8364f29812a10a4cc78a244f @dakrone committed Jan 26, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/cd_client/core.clj
View
@@ -2,7 +2,8 @@
(:use [clojure.java.browse :only [browse-url]])
(:require [cheshire.core :as json]
[clj-http.client :as http]
- [clojure.string :as string]))
+ [clojure.string :as string])
+ (:import java.net.URLEncoder))
;; For testing purposes use localhost:8080
@@ -20,6 +21,7 @@
that works on clojuredocs.org"
[name]
(-> name
+ URLEncoder/encode
(string/replace "." "_dot")
(string/replace "?" "_q")
(string/replace "/" "_")))
@@ -114,8 +116,8 @@
(defn search
"Search for a method name within an (optional) namespace"
- ([name] (get-simple (str *search-api* name)))
- ([ns name] (get-simple (str *search-api* ns "/" name))))
+ ([name] (get-simple (str *search-api* (URLEncoder/encode (str name)))))
+ ([ns name] (get-simple (str *search-api* ns "/" (URLEncoder/encode (str name))))))
(defn comments-core

0 comments on commit 9334783

Please sign in to comment.