[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:22205

From: gotoyuzo ruby-lang.org
Date: Wed, 9 Jan 2008 20:37:04 +0900 (JST)
Subject: [ruby-cvs:22205] Ruby:r14968 (trunk): * lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields.

gotoyuzo	2008-01-09 20:37:03 +0900 (Wed, 09 Jan 2008)

  New Revision: 14968

  Modified files:
    trunk/ChangeLog
    trunk/lib/webrick/httprequest.rb
    trunk/test/webrick/test_httprequest.rb

  Log:
    * lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields.
      WEBrick::HTTPRequest#{host,port,request_uri} is derived having
      regards to X-Forwarded-Proto and X-Forwarded-Host.
    
    * lib/webrick/httprequest.rb
      (WEBrick::HTTPRequest#server_name?): new method.
      (WEBrick::HTTPRequest#remote_ip?): new method.
      (WEBrick::HTTPRequest#ssl?): new method.
    * string.c (rb_enc_cr_str_buf_cat): fix self appending.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/webrick/httprequest.rb?r1=14968&r2=14967&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14968&r2=14967&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/webrick/test_httprequest.rb?r1=14968&r2=14967&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]