Skip to content

Commit

Permalink
no need to url encode query parameters when generating oauth signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kovcic committed Apr 3, 2012
1 parent 6400586 commit 8dd3ce8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/twitter.clj
Expand Up @@ -69,21 +69,14 @@ take any required and optional arguments and call the associated Twitter method.
((first x#)
rest-map#)})
optional-query-param-names-mapping#)))
need-to-url-encode# (if (= :get ~req-method)
(into {}
(map (fn [[k# v#]]
[k#
(oauth.signature/url-encode v#)])
query-params#))
query-params#)
oauth-creds# (when (and *oauth-consumer*
*oauth-access-token*)
(oauth/credentials *oauth-consumer*
*oauth-access-token*
*oauth-access-token-secret*
~req-method
req-uri#
need-to-url-encode#))]
query-params#))]
(~handler (~(symbol "http" (name req-method))
req-uri#
:query (merge query-params#
Expand Down

0 comments on commit 8dd3ce8

Please sign in to comment.