Skip to content

Commit 7d34bcf

Browse files
committedApr 27, 2015
Merge pull request facebookarchive#113 from sindrenm/feature/uri-encode-tags
URI-encode request paths
2 parents 84f07f8 + 3d8c138 commit 7d34bcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/instagram/request.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def request(method, path, options, signature=false, raw=false, unformatted=false
4444

4545
case method
4646
when :get, :delete
47-
request.url(path, options)
47+
request.url(URI.encode(path), options)
4848
when :post, :put
49-
request.path = path
49+
request.path = URI.encode(path)
5050
request.body = options unless options.empty?
5151
end
5252
if signature && client_ips != nil

0 commit comments

Comments
 (0)
Please sign in to comment.