Project

General

Profile

ActionsLike0

Bug #7650

closed

net/http always added port number in host header.

Added by hsbt (Hiroshi SHIBATA) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2013-01-02 trunk 38676) [x86_64-darwin12.2.1]
Backport:
[ruby-dev:46829]

Description

#6482 の変更から、URI インスタンスを Net::HTTP のリクエストに渡した時に host ヘッダにホスト名とポート番号がつくようになりましたが、いくつかのサービスはポート番号付きのリクエストは動かないようです。(例: amazon の ecs api)

w3c に従うと、ポート番号を付けても動くべきと思いますが、今現在 amazon のような大きなサービスでも動かない状況なので、添付しているパッチのように 2.0 ではポート番号は付けないようして頂けないでしょうか。

参考URL:


Files

generic_request.patch (461 Bytes) generic_request.patch hsbt (Hiroshi SHIBATA), 01/03/2013 05:01 PM
generic_request2.patch (529 Bytes) generic_request2.patch hsbt (Hiroshi SHIBATA), 01/05/2013 07:44 PM

Added by naruse (Yui NARUSE) about 12 years ago

Revision a1de1fa5

  • lib/net/http/generic_request.rb:
    Amazon ECA API and GTE/1.3 disallow requests whose host has port
    number if its port number equlas to default port number of the
    scheme. [Bug #7650]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF