Hi Brad,

On Sat, Mar 19, 2016 at 12:39:36AM +0100, Brad Fitzpatrick wrote:
> In any case, I can't understand how this bug report is possible and the
> suggested fix in this bug does not seem correct. HTTP/2 never contains the
> string "HTTP/2.0". It's a binary protocol. Even in unencrypted "h2c" mode
> (which Google doesn't support), you never see "HTTP/2.0" on the wire.

Right, thanks for pointing this out.

approx uses curl to fetch resources and parses the output of "curl -i".
This is where the "HTTP/2.0 200" string comes from, curl gets the status
from the :status HTTP/2 pseudo-header and outputs a status line that
looks like a HTTP/1.1 response, hence my confusion.

| % curl -i https://dl.google.com/linux/chrome/deb/dists/stable/Release
| HTTP/2.0 200
| accept-ranges:bytes
| content-length:1189
| content-type:application/octet-stream
| etag:"b2315"
| expires:Sun, 20 Mar 2016 02:38:22 PDT
| last-modified:Fri, 18 Mar 2016 00:00:00 GMT
| server:downloads
| x-content-type-options:nosniff
| x-frame-options:SAMEORIGIN
| x-xss-protection:1; mode=block
| date:Sat, 19 Mar 2016 09:38:22 GMT
| alternate-protocol:443:quic,p=1
| alt-svc:quic=":443"; ma=2592000; v="31,30,29,28,27,26,25"
| 
| Origin: Google, Inc.
| Label: Google
| Suite: stable
| Codename: stable
| Version: 1.0
| Date: Thu, 17 Mar 2016 21:43:22 +0000
| Architectures: amd64
| Components: main
| Description: Google chrome-linux repository.
| MD5Sum:
|  89704f9af9e6ccd87c192de11ba4c511 145 main/binary-amd64/Release
|  250e7e55fe0c5420a41b60f626539a4d 4372 main/binary-amd64/Packages
|  8864c4331d4d973f3f434f59f95e99b7 1112 main/binary-amd64/Packages.gz
|  5a8cefd2908a8192457303f0036bef16 1365 main/binary-amd64/Packages.bz2
| SHA1:
|  153199d8f866350b7853365a4adc95ee687603dd 145 main/binary-amd64/Release
|  d8735e00f70e5a8a262f4291ff74d4bb7d707033 4372 main/binary-amd64/Packages
|  a95a3fef1ea98bc992dbbadca46176a43deb07b4 1112 main/binary-amd64/Packages.gz
|  3269198ddd4c64d0a8cb1c4c7924e78cd2b0f993 1365 main/binary-amd64/Packages.bz2
| SHA256:
|  c4e091daa777628bea865f0cd58109e9146fea73ae67019598dc03e87c33289f 145 
main/binary-amd64/Release
|  0094ffcf98793a12f4e2879069b1523c7f0761d49d80e13be501bc8bce173f10 4372 
main/binary-amd64/Packages
|  8ba0eb2c8a1359c07bd0bf289937ab313bb9341a56545bc660dacb5dd175ac2e 1112 
main/binary-amd64/Packages.gz
|  a9cadcee6ddc0653b0dfe939c6bf0274217d822c968933574941099fe4dfb5e4 1365 
main/binary-amd64/Packages.bz2
| %

-- 
Romain Francoise <[email protected]>
http://people.debian.org/~rfrancoise/

  • Bug#818633: Romain Francoise

Reply via email to