From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 9D1661F45A for ; Thu, 15 Aug 2019 01:49:43 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id A7A16120B00; Thu, 15 Aug 2019 10:49:36 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 16A34120ABC for ; Thu, 15 Aug 2019 10:49:34 +0900 (JST) Received: by filter0047p3iad2.sendgrid.net with SMTP id filter0047p3iad2-18354-5D54BA32-23 2019-08-15 01:49:38.640706528 +0000 UTC m=+1665900.253940761 Received: from herokuapp.com (unknown [3.87.212.221]) by ismtpd0038p1mdw1.sendgrid.net (SG) with ESMTP id YhHOtCBZTNeKWJx1lYPMVw for ; Thu, 15 Aug 2019 01:49:38.588 +0000 (UTC) Date: Thu, 15 Aug 2019 01:49:38 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 69909 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 6527 X-Redmine-Issue-Author: fhars X-Redmine-Issue-Assignee: nahi X-Redmine-Sender: jeremyevans0 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BILB=2FrU+KhtL3=2Fo7DJikQCznFieeSu4isXpC3Wl?= =?us-ascii?Q?ooMOyNMuDn0HZ1LmUFJRrYJRNe+CcWfYb5va9no?= =?us-ascii?Q?3p4FLoZ7a9NDhabAqZDXofCVE1+IQignn6tu9YQ?= =?us-ascii?Q?hu6ohZ0n+U9lXgAKuoMwNQw1r1+VMYF4bbg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94362 Subject: [ruby-core:94362] [Ruby master Bug#6527] WEBrick::HTTPResponse.header is a hash X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #6527 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Assigned to Rejected I don't think this is a bug. `WEBrick::HTTPResponse.header` is a hash, but the values are arrays. So if a request comes in with multiple `WWW-Authenticate` headers, `header['www-authenticate']` should contain an array of all `WWW-Authenticate` header values. This appears to be true even in 1.8.7 (https://github.com/ruby/ruby/blob/ruby_1_8_7/lib/webrick/httputils.rb#L118-L145). ---------------------------------------- Bug #6527: WEBrick::HTTPResponse.header is a hash https://bugs.ruby-lang.org/issues/6527#change-80772 * Author: fhars (Florian Hars) * Status: Rejected * Priority: Normal * Assignee: nahi (Hiroshi Nakamura) * Target version: * ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] * Backport: ---------------------------------------- This means that there can only be one header with a given name, which makes if for example impossible to implement anything but the most trivial RFC 2617 authentication schemes, most of which would require several WWW-Authenticate headers. This does of course affect version 1.8, too. -- https://bugs.ruby-lang.org/