about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-21 01:28:23 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-21 01:28:23 +0000
commit1f5bac15cd8e4393c6da98eb7bb4532133dc6259 (patch)
tree4d230cdb233014230714d021a00e40ffad93f595 /test
parentbf64b9aa855cf3590a4d5b4eca853aef33ba90cc (diff)
downloadunicorn-1f5bac15cd8e4393c6da98eb7bb4532133dc6259.tar.gz
More config bloat, sadly this is necessary for Rainbows! :<
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_http_parser_xftrust.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/test_http_parser_xftrust.rb b/test/unit/test_http_parser_xftrust.rb
index 8c3db40..c396bc4 100644
--- a/test/unit/test_http_parser_xftrust.rb
+++ b/test/unit/test_http_parser_xftrust.rb
@@ -5,11 +5,11 @@ include Unicorn
 
 class HttpParserXFTrustTest < Test::Unit::TestCase
   def setup
-    assert HttpParser.x_forwarded_trust?
+    assert HttpParser.trust_x_forward?
   end
 
   def test_xf_trust_false_xfp
-    HttpParser.x_forwarded_trust = false
+    HttpParser.trust_x_forward = false
     parser = HttpParser.new
     parser.buf << "GET / HTTP/1.1\r\nHost: foo:\r\n" \
                   "X-Forwarded-Proto: https\r\n\r\n"
@@ -21,7 +21,7 @@ class HttpParserXFTrustTest < Test::Unit::TestCase
   end
 
   def test_xf_trust_false_xfs
-    HttpParser.x_forwarded_trust = false
+    HttpParser.trust_x_forward = false
     parser = HttpParser.new
     parser.buf << "GET / HTTP/1.1\r\nHost: foo:\r\n" \
                   "X-Forwarded-SSL: on\r\n\r\n"
@@ -33,6 +33,6 @@ class HttpParserXFTrustTest < Test::Unit::TestCase
   end
 
   def teardown
-    HttpParser.x_forwarded_trust = true
+    HttpParser.trust_x_forward = true
   end
 end