jwilger-webrat 0.4.3.3 → 0.4.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@ module Webrat
7
7
  class WebratError < StandardError
8
8
  end
9
9
 
10
- VERSION = '0.4.3.3'
10
+ VERSION = '0.4.3.4'
11
11
 
12
12
  def self.require_xml
13
13
  gem "nokogiri", ">= 1.0.6"
@@ -264,7 +264,7 @@ For example:
264
264
  end
265
265
 
266
266
  def current_host
267
- URI.parse(current_url).host || "www.example.com"
267
+ URI.parse(current_url).host || @custom_headers["Host"] || "www.example.com"
268
268
  end
269
269
 
270
270
  def response_location_host
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwilger-webrat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3.3
4
+ version: 0.4.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Helmkamp