Is “fr, en; q=0.3” a valid Accept-Language value?

Samuel Williams <space.ship.traveller@gmail.com> Wed, 19 October 2016 00:36 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7AAE3129446 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 17:36:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.932
X-Spam-Level:
X-Spam-Status: No, score=-6.932 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zDDhHLIxwpsM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 17:36:55 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2C90112943A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 18 Oct 2016 17:36:54 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bwenp-0003n9-As for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Oct 2016 00:32:17 +0000
Resent-Date: Wed, 19 Oct 2016 00:32:17 +0000
Resent-Message-Id: <E1bwenp-0003n9-As@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <space.ship.traveller@gmail.com>) id 1bweni-0003lr-FG for ietf-http-wg@listhub.w3.org; Wed, 19 Oct 2016 00:32:10 +0000
Received: from mail-oi0-f52.google.com ([209.85.218.52]) by lisa.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <space.ship.traveller@gmail.com>) id 1bwenf-00026c-Af for ietf-http-wg@w3.org; Wed, 19 Oct 2016 00:32:09 +0000
Received: by mail-oi0-f52.google.com with SMTP id m72so12594212oik.3 for <ietf-http-wg@w3.org>; Tue, 18 Oct 2016 17:31:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=70jLmiiuS3wKGZohP8n1JMO3aBjczpW/Xx3mjc6vo38=; b=oKM+hsTm6YXXll8QSSm8ZRty5U+1gOXPOfiuuleQo3Awv45OOYwK4r/mgvXUX+RjMM ekOQgd47o0c/uQ5gVrSIc36CExO/35Z1+ApqtW3AlflzqjEgu/2mVyiU14Xh5nWtK18d nUCmMwWp3diHNLzgN/6aQxboZGnOr+L9uT5PVv14U2MH24Q4VoYe1ylcZKrRh2dVqhvq kSMb0OyAuqapZS415iV3zrT+JL/8vw0RZkvi2e2w87o4jN3ZP9aBcMY5e56Ov0v2RdI7 qm86rNIsubO+3M81s8C7MJhVtxgfc2GZ3tY0BwGo9u+fM2mBYoYsNkYVl9GUyz9IStLP CXQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=70jLmiiuS3wKGZohP8n1JMO3aBjczpW/Xx3mjc6vo38=; b=TBXXu0mc8IgLR7kw2ooZ5KiLuVhNJVn+MOt3MdhXoe+rVDGuziFc1/Pc4kyTHn3EpP Dpmsl9SU1tuWAlWiw51gYvpNptPlpTnwf+Z0sltSzr52afbEY6BJtSZ77GVMYzCIP3Du 2GC/E2T326FIXzh0KMq/YYEtWPV7WAG7Y80sEtPchOGrKq6INhHghslVVlaaZAGTungU zHbtn0FFsGOwkopvkX/qMxFV6tuQKTXr6/jlGBAKRTQAN7xsEOMDh/BLk46RRw+FEkNN stIUrBquL2P6PdwY1VBw4Ll1YUXej0zsHk5KAt7xRCV/yYGlssvGx9c+MjD1SSnEf5+T cGMQ==
X-Gm-Message-State: AA6/9RlrQLObRkhZ4bi1y0g3AdTPKfHODBD/cgn/qA831CQLfg1oojSSrNCQMZjE/khHcu4+dDsEN7ERwVwW7A==
X-Received: by 10.157.45.201 with SMTP id g67mr2073306otb.88.1476837100822; Tue, 18 Oct 2016 17:31:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.97.2 with HTTP; Tue, 18 Oct 2016 17:31:40 -0700 (PDT)
From: Samuel Williams <space.ship.traveller@gmail.com>
Date: Wed, 19 Oct 2016 13:31:40 +1300
Message-ID: <CAHkN8V9RyAVprdWT2ZRDfDyCc+aj7Q6iJdGRr8N2m-qzEis7Kw@mail.gmail.com>
To: ietf-http-wg@w3.org
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.218.52; envelope-from=space.ship.traveller@gmail.com; helo=mail-oi0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-1.0
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_NW=0.5
X-W3C-Scan-Sig: lisa.w3.org 1bwenf-00026c-Af 0451b4006e97a17b5c996ece81ce7b14
X-Original-To: ietf-http-wg@w3.org
Subject: =?UTF-8?B?SXMg4oCcZnIsIGVuOyBxPTAuM+KAnSBhIHZhbGlkIEFjY2VwdC1MYW5ndWFnZSB2YWx1ZQ==?= =?UTF-8?B?Pw==?=
Archived-At: <http://www.w3.org/mid/CAHkN8V9RyAVprdWT2ZRDfDyCc+aj7Q6iJdGRr8N2m-qzEis7Kw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32624
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

According to the RFC, it's okay to have *LWS between words and
separators. However, if you look at the specific ABNF for matching the
Accept-Language field, it doesn't allow for whitespace around the ;
character.

Here is the exact LWS specification:

implied *LWS: The grammar described by this specification is
word-based. Except where noted otherwise, linear white space (LWS) can
be included between any two adjacent words (token or quoted-string),
and between adjacent words and separators, without changing the
interpretation of a field. At least one delimiter (LWS and/or
separators) MUST exist between any two tokens (for the definition of
"token" below), since they would otherwise be interpreted as a single
token.

Here is the ABNF grammar:

   Accept-Language = "Accept-Language" ":"
                     1#( language-range [ ";" "q" "=" qvalue ] )
   language-range  = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

Any advice would be appreciated. Thanks