lib/deviceatlasapi.rb in deviceatlasapi-0.0.7.1 vs lib/deviceatlasapi.rb in deviceatlasapi-0.0.7.2
- old
+ new
@@ -47,10 +47,10 @@
def is_cookie_set? request
request.cookies[@cookie_name].nil?
end
def get_client_properties request
- request.cookies['DAPROPS'].gsub /^"|"$/, ''
+ request.cookies['DAPROPS'].gsub /^"|"$/, '' if !request.cookies['DAPROPS'].nil?
end
private
def prepare_headers request