Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #113 from sindrenm/feature/uri-encode-tags

URI-encode request paths
  • Loading branch information...
commit 7d34bcf8529aba29a1c39c90b11fa4f6d416d46f 2 parents 84f07f8 + 3d8c138
@heatonjb heatonjb authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/instagram/request.rb
View
4 lib/instagram/request.rb
@@ -44,9 +44,9 @@ def request(method, path, options, signature=false, raw=false, unformatted=false
case method
when :get, :delete
- request.url(path, options)
+ request.url(URI.encode(path), options)
when :post, :put
- request.path = path
+ request.path = URI.encode(path)
request.body = options unless options.empty?
end
if signature && client_ips != nil
Please sign in to comment.
Something went wrong with that request. Please try again.