[hybi] Sec-WebSocket-Extensions field spec. contradiction

Sylvain Hellegouarch <sh@defuze.org> Sat, 03 September 2011 14:24 UTC

Return-Path: <sh@defuze.org>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2AC4221F8BF8 for <hybi@ietfa.amsl.com>; Sat, 3 Sep 2011 07:24:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.801
X-Spam-Level:
X-Spam-Status: No, score=-2.801 tagged_above=-999 required=5 tests=[AWL=0.175, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IZLLWIrSLkfG for <hybi@ietfa.amsl.com>; Sat, 3 Sep 2011 07:23:57 -0700 (PDT)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id B781421F8B9E for <hybi@ietf.org>; Sat, 3 Sep 2011 07:23:57 -0700 (PDT)
Received: by gyf3 with SMTP id 3so3084374gyf.31 for <hybi@ietf.org>; Sat, 03 Sep 2011 07:25:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.20.197 with SMTP id p5mr1185045pbe.284.1315059933419; Sat, 03 Sep 2011 07:25:33 -0700 (PDT)
Received: by 10.142.113.8 with HTTP; Sat, 3 Sep 2011 07:25:33 -0700 (PDT)
X-Originating-IP: [82.229.61.197]
Date: Sat, 03 Sep 2011 16:25:33 +0200
Message-ID: <CALkdAkg79HMuP3Sbp=H25fFxu1f587kNO=QT4-R6eT2rJEsEJg@mail.gmail.com>
From: Sylvain Hellegouarch <sh@defuze.org>
To: Server-Initiated HTTP <hybi@ietf.org>
Content-Type: multipart/alternative; boundary="bcaec5215a9b30994b04ac0a40da"
Subject: [hybi] Sec-WebSocket-Extensions field spec. contradiction
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Sep 2011 14:24:00 -0000

Hi all,

Section 4.2.2 says:

If multiple extensions are to be used, they must all be listed in a single
> Sec-WebSocket-Extensions header field.  This header field MUST NOT be
> repeated.



But section 9.1 says:


Note that like other HTTP header fields, this header field MAY be split or
> combined across multiple lines.  Ergo, the following are equivalent:
>         Sec-WebSocket-Extensions: foo
>         Sec-WebSocket-Extensions: bar; baz=2
> is exactly equivalent to
>         Sec-WebSocket-Extensions: foo, bar; baz=2



Aren't those two statements contradicting themselves?

--
- Sylvain
http://www.defuze.org
http://twitter.com/lawouach