Permalink
Browse files

no need to url encode query parameters when generating oauth signature

  • Loading branch information...
1 parent 6400586 commit 8dd3ce8a01a3d014faa812ba5194dd08559227b1 @kovcic kovcic committed Apr 3, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/twitter.clj
View
@@ -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#

0 comments on commit 8dd3ce8

Please sign in to comment.