Skip to content

Commit

Permalink
Fix bug when purging a URL without a path
Browse files Browse the repository at this point in the history
  • Loading branch information
robmiller committed Sep 2, 2013
1 parent f61c3c2 commit 350dfa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/varnisher/purger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def send
hostname = Varnisher.options['hostname'] || @host
port = Varnisher.options['port']

@path = '/' if @path.nil? || @path == ''

begin
http = Net::HTTP.new(hostname, port)
response = http.request(@request_method.new(@path))
Expand Down
2 changes: 1 addition & 1 deletion lib/varnisher/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Varnisher
VERSION = '1.0.beta.5'
VERSION = '1.0.beta.6'
end

0 comments on commit 350dfa6

Please sign in to comment.