Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Style.

  • Loading branch information...
commit 3d0a1fae4fecd2dbfeae4ab0dc65c6399f81dc63 1 parent 0e49137
@postmodern postmodern authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 lib/ronin/network/http/http.rb
View
9 lib/ronin/network/http/http.rb
@@ -117,12 +117,9 @@ def self.expand_url(url)
new_options = {}
url = case url
- when URI
- url
- when Hash
- URI::HTTP.build(url)
- else
- URI(url.to_s)
+ when URI then url
+ when Hash then URI::HTTP.build(url)
+ else URI(url.to_s)
end
new_options[:ssl] = {} if url.scheme == 'https'
Please sign in to comment.
Something went wrong with that request. Please try again.