Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

no need to url encode query parameters when generating oauth signature

  • Loading branch information...
commit 8dd3ce8a01a3d014faa812ba5194dd08559227b1 1 parent 6400586
Andrej Kovcic kovcic authored

Showing 1 changed file with 1 addition and 8 deletions. Show diff stats Hide diff stats

  1. +1 8 src/twitter.clj
9 src/twitter.clj
@@ -69,13 +69,6 @@ take any required and optional arguments and call the associated Twitter method.
69 69 ((first x#)
70 70 rest-map#)})
71 71 optional-query-param-names-mapping#)))
72   - need-to-url-encode# (if (= :get ~req-method)
73   - (into {}
74   - (map (fn [[k# v#]]
75   - [k#
76   - (oauth.signature/url-encode v#)])
77   - query-params#))
78   - query-params#)
79 72 oauth-creds# (when (and *oauth-consumer*
80 73 *oauth-access-token*)
81 74 (oauth/credentials *oauth-consumer*
@@ -83,7 +76,7 @@ take any required and optional arguments and call the associated Twitter method.
83 76 *oauth-access-token-secret*
84 77 ~req-method
85 78 req-uri#
86   - need-to-url-encode#))]
  79 + query-params#))]
87 80 (~handler (~(symbol "http" (name req-method))
88 81 req-uri#
89 82 :query (merge query-params#

0 comments on commit 8dd3ce8

Please sign in to comment.
Something went wrong with that request. Please try again.