Skip to content

Commit 3a1d9e6

Browse files
author
Matt Revelle
committed
URL encode parameters prior to assembling the base string that will be signed
1 parent 6faf802 commit 3a1d9e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/twitter.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ take any required and optional arguments and call the associated Twitter method.
6464
*oauth-access-token-secret*
6565
~req-method
6666
req-uri#
67-
query-params#))]
67+
(into {} (map (fn [[k# v#]] [k# (oauth/url-encode v#)]) query-params#))))]
68+
; (into {} (map (fn [k# v#] [k# (oauth/url-encode v#)]) query-params#))
6869
(~handler (~(symbol "http" (name req-method))
6970
req-uri#
7071
:query (merge query-params#

0 commit comments

Comments
 (0)