• Bug#1107103: w3m: cannot parse HTTP/1.1 response from GitHub - "gzip: s

    From Vincent Lefevre@21:1/5 to All on Sun Jun 1 17:50:01 2025
    Package: w3m
    Version: 0.5.3+git20230121-2.1
    Severity: normal
    Tags: upstream
    Forwarded: https://github.com/tats/w3m/issues/307

    When trying to open github.com URLs, w3m gives

    gzip: stdin: not in gzip format

    In a comment in the upstream bug, Rene Kita says that the cause is
    that "GitHub is ignoring the http/1.0 request and sending an http/1.1
    response which w3m cannot parse" and provides a workaround consisting
    in using a CGI script that invokes curl on the URL (via site-specific settings).

    -- System Information:
    Debian Release: 13.0
    APT prefers unstable-debug
    APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.29-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages w3m depends on:
    ii libc6 2.41-8
    ii libgc1 1:8.2.8-1
    ii libgpm2 1.20.7-11+b2
    ii libssl3t64 3.5.0-2
    ii libtinfo6 6.5+20250216-2
    ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1

    Versions of packages w3m recommends:
    ii ca-certificates 20250419

    Versions of packages w3m suggests:
    pn brotli <none>
    ii bzip2 1.0.8-6
    pn cmigemo <none>
    pn compface <none>
    ii curl 8.13.0-5
    ii dict 1.13.1+dfsg-1
    ii dict-wn 1:3.0-39
    ii dictd 1.13.1+dfsg-1
    pn libsixel-bin <none>
    ii mailcap 3.74
    ii man-db 2.13.1-1
    ii media-types 13.0.0
    ii sensible-utils 0.0.25
    ii w3m-el 1.4.632+0.20221206.2328.4f27810-0.2
    ii w3m-img 0.5.3+git20230121-2.1
    ii wget 1.25.0-2
    ii xdg-utils 1.2.1-2
    ii xsel 1.2.1-1

    -- no debconf information

    --
    Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
    100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
    Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)