diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-21 10:32:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-21 10:32:26 +0000 |
commit | 978ee6d1ef62b36c143103f7a229bfb8bf0f99c6 (patch) | |
tree | f9a17382df572796d7424ff718a1f4a6eb73193d /test/webrick | |
parent | bcf0a198f1d593b9711117a347544d8101e7288b (diff) | |
download | ruby-978ee6d1ef62b36c143103f7a229bfb8bf0f99c6.tar.gz |
Multiple values X-Forwarded-Proto in webrick
* lib/webrick/httprequest.rb (setup_forwarded_info): Use the first
value in X-Forwarded-Proto, if header contains multiple comma
separated values. Some middlewares may add these values to the
list, not replacing. [Fix GH-1386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_httprequest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_httprequest.rb b/test/webrick/test_httprequest.rb index 3ece8a3ad9..855ff9d4a7 100644 --- a/test/webrick/test_httprequest.rb +++ b/test/webrick/test_httprequest.rb @@ -301,7 +301,7 @@ GET / GET /foo HTTP/1.1 Host: localhost:10080 Client-IP: 234.234.234.234 - X-Forwarded-Proto: https + X-Forwarded-Proto: https, http X-Forwarded-For: 192.168.1.10, 10.0.0.1, 123.123.123.123 X-Forwarded-Host: forward.example.com X-Forwarded-Server: server.example.com |