diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-25 19:30:12 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-25 19:30:12 +0000 |
commit | f970d87f9c0a4479a59685920a96c4d2fb2315e1 (patch) | |
tree | b453238424a1b19a9e97b9af41086d0db52300fe /test/unit | |
parent | f62ef19a4aa3d3e4ce1aa37a499907ff776a8964 (diff) | |
download | unicorn-f970d87f9c0a4479a59685920a96c4d2fb2315e1.tar.gz |
Oops
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/test_http_parser_xftrust.rb | 8 |
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 c396bc4..db8cfa9 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.trust_x_forward? + assert HttpParser.trust_x_forwarded? end def test_xf_trust_false_xfp - HttpParser.trust_x_forward = false + HttpParser.trust_x_forwarded = 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.trust_x_forward = false + HttpParser.trust_x_forwarded = 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.trust_x_forward = true + HttpParser.trust_x_forwarded = true end end |