lib/unirest/http_request.rb in unirest-2x-1.1.2 vs lib/unirest/http_request.rb in unirest-2x-1.1.3

- old
+ new

@@ -55,14 +55,14 @@ end else @body = body end - unless url =~ URI.regexp + unless url =~ URI::DEFAULT_PARSER.regexp[:ABS_URI] raise "Invalid URL: #{url}" end - @url = url.gsub /\s+/, '%20' + @url = url.gsub(/\s+/, '%20') @headers = {} if auth != nil && auth.is_a?(Hash) user = ""