test/spec_urlmap.rb in rack-1.5.1 vs test/spec_urlmap.rb in rack-1.5.2
- old
+ new
@@ -108,10 +108,10 @@
res.should.be.ok
res["X-Position"].should.equal "subdomain.foo.org"
res = Rack::MockRequest.new(map).get("http://foo.org/")
res.should.be.ok
- res["X-Position"].should.equal "default.org"
+ res["X-Position"].should.equal "foo.org"
res = Rack::MockRequest.new(map).get("/", "HTTP_HOST" => "example.org")
res.should.be.ok
res["X-Position"].should.equal "default.org"