summaryrefslogtreecommitdiff
path: root/lib/httpunix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/httpunix.rb')
-rw-r--r--lib/httpunix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/httpunix.rb b/lib/httpunix.rb
index db160eb..7d00f71 100644
--- a/lib/httpunix.rb
+++ b/lib/httpunix.rb
@@ -11,7 +11,7 @@ module URI
class HTTPUNIX < HTTP
def hostname
# decode %XX from path to file
- v = self.host
+ v = host
URI.decode(v)
end
@@ -30,7 +30,7 @@ end
# - Net::HTTP::connect
module Net
class HTTPUNIX < HTTP
- def initialize(socketpath, port=nil)
+ def initialize(socketpath, port = nil)
super(socketpath, port)
@port = nil # HTTP will set it to default - override back -> set DEFAULT_PORT
end