[quicwg/base-drafts] http: Allow unquoted tokens in Alt-Svc quic parameter (#3063)

Peter Wu <notifications@github.com> Tue, 24 September 2019 00:45 UTC

Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id 64DE612006A for <quic-issues@ietfa.amsl.com>; Mon, 23 Sep 2019 17:45:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.494
X-Spam-Status: No, score=-6.494 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_IMAGE_ONLY_28=1.404, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id 2A25NYQlIfZQ for <quic-issues@ietfa.amsl.com>; Mon, 23 Sep 2019 17:45:30 -0700 (PDT)
Received: from out-20.smtp.github.com (out-20.smtp.github.com []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9440120045 for <quic-issues@ietf.org>; Mon, 23 Sep 2019 17:45:29 -0700 (PDT)
Received: from github-lowworker-3a0df0f.ac4-iad.github.net (github-lowworker-3a0df0f.ac4-iad.github.net []) by smtp.github.com (Postfix) with ESMTP id 2AC498C0769 for <quic-issues@ietf.org>; Mon, 23 Sep 2019 17:45:29 -0700 (PDT)
Date: Mon, 23 Sep 2019 17:45:29 -0700
From: Peter Wu <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJKY5BDFXIEPPJH6HC553S2T3TEVBNHHB3JNFTE@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/3063@github.com>
Subject: [quicwg/base-drafts] http: Allow unquoted tokens in Alt-Svc quic parameter (#3063)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5d8967291a890_1ce13fa3e10cd9646776d"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: Lekensteyn
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/gtF_r2HQMhht9K4Iu7ceY8QBwUo>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Sep 2019 00:45:33 -0000

According to https://tools.ietf.org/html/rfc7838#section-3, the Alt-Svc parameter value can be unquoted:
    parameter = token "=" ( token / quoted-string )

This means that this can be written:
alt-svc: h3=":443";quic=1
instead of only:
alt-svc: h3=":443";quic="1"

The current text in https://tools.ietf.org/html/draft-ietf-quic-http-23#section-3.2.1 forbids the unquoted variant which is an additional constraint on the RFC 7838 grammar. Should unquoted `quic` parameter values also be permitted?

Note that this does not change the situation when multiple versions are supported since an unquoted "token" type is not allowed to contain commas.

See also the discussion in #3059.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub: