Skip to content

Commit

Permalink
fixing escaping on fastly-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
caueguerra committed Apr 25, 2016
1 parent dc9866e commit e7b423e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fastly-rails/client.rb
@@ -1,4 +1,5 @@
require 'fastly'
require 'uri'

module FastlyRails
# A simple wrapper around the fastly-ruby client.
Expand All @@ -13,7 +14,7 @@ def purge_by_key(key)
end

def purge_url(key)
"/service/#{FastlyRails.service_id}/purge/#{key}"
"/service/#{FastlyRails.service_id}/purge/#{URI.escape(key)}"
end
end
end

0 comments on commit e7b423e

Please sign in to comment.