From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Winston Weinert Newsgroups: gmane.emacs.bugs Subject: bug#33002: 26.1; EWW sends unspecific "Accept: */*" header Date: Wed, 10 Oct 2018 00:11:03 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1539158948 3923 195.159.176.226 (10 Oct 2018 08:09:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 08:09:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 33002@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 10:09:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA9YF-0000v8-Ih for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 10:09:04 +0200 Original-Received: from localhost ([::1]:55878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gA9aM-0007hT-8e for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 04:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gA9aE-0007hL-QB for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 04:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gA9aA-0006WW-Ay for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 04:11:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gA9aA-0006SW-38 for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 04:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gA9a9-0000A0-Ox for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 04:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Winston Weinert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Oct 2018 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1539159060607 (code B ref -1); Wed, 10 Oct 2018 08:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Oct 2018 08:11:00 +0000 Original-Received: from localhost ([127.0.0.1]:42876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA9a7-00009i-Ax for submit@debbugs.gnu.org; Wed, 10 Oct 2018 04:11:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA6mM-0003uI-Q3 for submit@debbugs.gnu.org; Wed, 10 Oct 2018 01:11:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gA6mE-00072s-PZ for submit@debbugs.gnu.org; Wed, 10 Oct 2018 01:11:21 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gA6mB-00071P-G0 for submit@debbugs.gnu.org; Wed, 10 Oct 2018 01:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gA6m9-0004nF-Ie for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 01:11:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gA6m5-0006y0-RN for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 01:11:13 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44495) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gA6m5-0006w1-Iq for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 01:11:09 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D9068220B8 for ; Wed, 10 Oct 2018 01:11:04 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 10 Oct 2018 01:11:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ml1.net; h=to :subject:from:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm1; bh=X6OeuNeIVurbGz6svsk6t9Fb4/ 3Ztc95hQKS3UmpHoE=; b=S53hxTw1c/qqa4Hnv8YH7hbq+EvDK3B2fqtow0gV9h ka8pguQnRy/VNz/kG5Nz2yrZsM0AMdzgZzaDPJT66ICZdYKLdkZK2ugq7F1Lq4zk I0UF1sTWq3hxJbv/oZmEvpt5zVc+/jCU+zOGD2Xl3QIGVGaLwZWww8GAR9SrO4g1 ubsa8/3z0EpCr2Nxzp+1+/e7N5LxBz9uu1KXS9X4yrASJ5b6YewizVNOJmQ06rgN vV5bbwl9Sbj6+/lH4+BQ2uaC2oLYINs1suiQlGQHO2QXc6F9aXlEVzhCCf2ZYrId 7PWUbEsHhD8kqcUBSwWWgcA1iJnZP8uKkBZ63jqVKSbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=X6OeuN eIVurbGz6svsk6t9Fb4/3Ztc95hQKS3UmpHoE=; b=vw0cCY1E7j0inR1Syl7Emk ifssJzkoCcAFFdzes02fBLo26P03/DeMAGtwRr2tru2E4r0hCUWejvJ2cdrg6HmD XNrlhvxHkZrv2TxWFvdkRpUY5UESR6bPiQQNRHqOOn0E32jb94oT/CGoh8vg1IAN BAGSnxMNU4YmtlSIOazFVlZ6ctB7KO1jvbRpYUgUskI9NFVWmvmi5S4CV99z5kK5 avGZ868pI6eaQOs6sjIKCd1qg+2e+N3459mE+RsMYVHItOPXI/lTJP+Z1Ya239DP covc00i/a75mzLjgfaw3jzmKkyanvoUEQ2oMu/leDsqvuWlg8poNwbSVRkUS88Tw == X-ME-Sender: X-ME-Proxy: Original-Received: from [192.168.1.51] (cpe-65-29-161-10.wi.res.rr.com [65.29.161.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 07A98102D7 for ; Wed, 10 Oct 2018 01:11:03 -0400 (EDT) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 10 Oct 2018 04:10:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151067 Archived-At: I noticed EWW sends header "Accept: */*", which appears to prevent HTTP servers that provide multiple content types from picking a sensible response content type. More information about the Accept header with a list of RFCs at the bottom of the page can be found here [1]. For comparison lynx sends a more specific header, which indicates It'd prefer common web content types before anything else [2]. I experienced this particular bug when browsing [3], which uses the Accept header to determine when to show the built-in API Explorer. In a web browser it shows a HTML form to interact with the API, however actual API clients use "Accept: application/json" or similar to get the desired format. Regards, Winston Weinert [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept [2]: "Accept: text/html, text/plain, text/sgml, text/css, application/xhtml+xml, */*;q=0.01" [3]: https://restframework.herokuapp.com/ In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-09-08 built on snowcrash Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: Gentoo Base System release 2.4.1 Recent messages: C-c C-g is undefined Quit Contacting host: duckduckgo.com:443 ImageMagick error: insufficient image data in file `/tmp/foo.ico' @ error/icon.c/ReadICONImage/375 Contacting host: localhost:8000 Making completion list... [3 times] Note: file is write protected Mark saved where search started Quit delete-backward-char: Text is read-only Configured using: 'configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-26.1-r3 --htmldir=/usr/share/doc/emacs-26.1-r3/html --libdir=/usr/lib64 --program-suffix=-emacs-26 --infodir=/usr/share/info/emacs-26 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --enable-acl --with-dbus --without-modules --without-gameuser --without-gpm --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=lucid --with-xaw3d 'CFLAGS=-O2 -pipe -march=bdver2' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 THREADS LCMS2 Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Outline Minor modes in effect: TeX-PDF-mode: t global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t override-global-mode: t winum-mode: t shell-dirtrack-mode: t recentf-mode: t global-edit-server-edit-mode: t mode-line-bell-mode: t editorconfig-mode: t electric-pair-mode: t image-diredx-async-mode: t show-paren-mode: t cl-old-struct-compat-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim hides ~/.emacs.d/custom/emacs-eclim/eclim /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-java-run hides ~/.emacs.d/custom/emacs-eclim/eclim-java-run /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-macros hides ~/.emacs.d/custom/emacs-eclim/eclim-macros /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-debug hides ~/.emacs.d/custom/emacs-eclim/eclim-debug /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-completion hides ~/.emacs.d/custom/emacs-eclim/eclim-completion /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-common hides ~/.emacs.d/custom/emacs-eclim/eclim-common /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-problems hides ~/.emacs.d/custom/emacs-eclim/eclim-problems /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-maven hides ~/.emacs.d/custom/emacs-eclim/eclim-maven /home/winston/.emacs.d/elpa/eclim-20180928.523/eclimd hides ~/.emacs.d/custom/emacs-eclim/eclimd /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-ant hides ~/.emacs.d/custom/emacs-eclim/eclim-ant /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-pkg hides ~/.emacs.d/custom/emacs-eclim/eclim-pkg /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-project hides ~/.emacs.d/custom/emacs-eclim/eclim-project /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-scala hides ~/.emacs.d/custom/emacs-eclim/eclim-scala /home/winston/.emacs.d/elpa/eclim-20180928.523/eclim-java hides ~/.emacs.d/custom/emacs-eclim/eclim-java ~/.emacs.d/custom/emacs-eclim/company-emacs-eclim hides /home/winston/.emacs.d/elpa/company-emacs-eclim-20180911.1121/company-emacs-eclim ~/code/cyberpunk-theme.el/cyberpunk-theme hides /home/winston/.emacs.d/elpa/cyberpunk-theme-20180609.509/cyberpunk-theme Features: (shadow sort mail-extr emacsbug rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid nxml-mode nxml-outln nxml-rap sgml-mode tabify man scheme yaml-mode term ehelp sml-mode conf-mode gist gh-gist gh-oauth gh-api logito gh-cache pcache gh-auth gh-url gh-profile timezone eieio-base cus-edit url-file url-dired eww mm-url url-queue helm-dash helm helm-source helm-multi-match helm-lib eclim-scala eclim-debug eclimd gud eclim-java-run eclim-ant eclim-maven eclim-project eclim-java eclim-problems yasnippet eclim-common popup arc-mode archive-mode eclim-macros package-recipe-mode package-build-badges package-build package-recipe skeleton ibuf-macs grep ibuf-ext ibuffer ibuffer-loaddefs racket-unicode-input-method quail racket-debug racket-mode racket-bug-report racket-collection racket-stepper racket-logger racket-profile racket-imenu racket-edit racket-complete shr svg dom racket-repl racket-common racket-indent racket-font-lock racket-ppss racket-keywords-and-builtins tq racket-util racket-custom sh-script smie executable tar-mode autoload radix-tree lisp-mnt mm-archive network-stream starttls url-cache tmm haskell-doc inf-haskell haskell-decl-scan haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-navigate-imports haskell-repl haskell-svg haskell-collapse hideshow haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-compile haskell-hoogle haskell-process haskell-session vc-git haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-compat haskell-complete-module haskell-ghc-support etags xref project dabbrev haskell-customize ssh-config-mode misearch multi-isearch preview prv-emacs tex-buf font-latex latex tex-ispell tex-style tex dbus xml tex-mode latexenc org-table ispell org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win org-docview org-bibtex bibtex org-bbdb org-w3m linum whitespace editorconfig-core editorconfig-core-handle editorconfig-fnmatch smart-mode-line-dark-theme smart-mode-line rich-minority cyberpunk-theme magithub magithub-dash magithub-notification magithub-orgs magithub-issue-tricks magithub-issue-post magithub-edit-mode magithub-repo magithub-ci magithub-issue magithub-label magithub-user magithub-core magithub-faces magithub-settings parse-time markdown-mode color bug-reference ghub+ apiwrap apropos s magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy graphql pcase ghub url-http tls gnutls url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap let-alist json map magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils crm subr-x magit-popup log-edit pcvs-util add-log with-editor async-bytecomp async server use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core cl-extra winum dash python-mode which-func imenu shell hippie-exp flymake-proc flymake warnings compile cc-cmds cc-engine cc-vars cc-defs web-mode disp-table dashboard dashboard-widgets recentf tree-widget page-break-lines org-agenda bookmark pp smex edit-server keychain-environment help-mode dired+ image-file dired-x dired-aux buffer-move windmove mode-line-bell editorconfig ox-twbs ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox profiler org-element avl-tree generator org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func elec-pair irfc scribble finder-inf edmacro kmacro gh-common marshal eieio-compat image-dired+ image-dired rx pydoc-info advice info-look info package url-handlers url-parse url-vars wheatgrass-theme paren gnus nnheader wid-edit cus-start cus-load site-gentoo mu4e desktop frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view cal-menu calendar cal-loaddefs thingatpt browse-url comint ansi-color ring mu4e-headers mu4e-compose mu4e-draft mu4e-actions ido rfc2368 smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-vars message rmc puny seq byte-opt bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line cl gv cl-loaddefs cl-lib mu4e-meta preview-latex auto-loads tex-site mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 2584773 148802) (symbols 48 78658 1) (miscs 40 5277 2890) (strings 32 395278 13798) (string-bytes 1 15855316) (vectors 16 114301) (vector-slots 8 2574679 85614) (floats 8 656 957) (intervals 56 273185 3106) (buffers 992 129))