Permalink
Browse files

Added encode for making URL safe before calling them

  • Loading branch information...
1 parent 85f708d commit 249bb554c58bae4ea02898d509746b88be6bf073 annerajb-server committed Feb 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/gov_kit/open_states.rb
@@ -19,7 +19,8 @@ class OpenStatesResource < Resource
# we return an empty set.
def self.get_uri(uri, options={})
begin
- response = get(uri, options)
+
+ response = get(URI.encode(uri), options)
result = parse(response)
rescue ResourceNotFound
return []

0 comments on commit 249bb55

Please sign in to comment.