Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

Commit

Permalink
Reformat code to satisfy a bug in rcov
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk committed Jul 6, 2009
1 parent 079c729 commit c392d7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fake_web/utility.rb
Expand Up @@ -7,9 +7,7 @@ def self.decode_userinfo_from_header(header)

def self.encode_unsafe_chars_in_userinfo(userinfo)
unsafe_in_userinfo = /[^#{URI::REGEXP::PATTERN::UNRESERVED};&=+$,]|^(#{URI::REGEXP::PATTERN::ESCAPED})/
userinfo.split(":").map { |user_or_pass|
URI.escape(user_or_pass, unsafe_in_userinfo)
}.join(":")
userinfo.split(":").map { |part| URI.escape(part, unsafe_in_userinfo) }.join(":")
end

def self.strip_default_port_from_uri(uri)
Expand Down

0 comments on commit c392d7b

Please sign in to comment.