Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

URL encode the var name passed to search.

  • Loading branch information...
commit 3fabb0b93cbc491a92cdf7eb649b44033de430e0 1 parent 1916457
@Raynes Raynes authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/cd_client/core.clj
View
7 src/cd_client/core.clj
@@ -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
@@ -114,8 +115,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
Please sign in to comment.
Something went wrong with that request. Please try again.