9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Nick Owens <mischief@offblast.org>
To: 9front@9front.org
Subject: Re: bug: webfs can't download files from sourceforge.net
Date: Tue, 18 Sep 2018 13:47:09 -0700	[thread overview]
Message-ID: <CAH_zEu7mHpoA+Sy7-Wu57yyfiUK5kCLYcC4DQFyYDEdrc7GgqQ@mail.gmail.com> (raw)
In-Reply-To: <CAH_zEu60G8Vav9XeRegHt2vcRTrn-mToyemO+x-Zi-wtcZ5uXg@mail.gmail.com>

after a long and grueling discussion on irc, Referer headers have been
removed from webfs. if anyone encounters a problem with a website as a
result of this, feel free to complain.

fixed in commit 3fe2d53fd3d8.
On Tue, Sep 18, 2018 at 12:31 PM Nick Owens <mischief@offblast.org> wrote:
>
> executing the following command:
>
> echo useragent curl/7.28.1 > /mnt/web/ctl
> hget https://download.sourceforge.net/tinyscheme/tinyscheme-1.41.tar.gz
> > tinyscheme-1.41.tar.gz
>
> will produce a html file.
>
> using actual curl on unix works fine.
>
> the problem appears to be the "Referer" header that webfs forced to be
> attached to the request. removing the Referer header from the webfs
> source and executing the request again produces the expected .tar.gz
> file.
>
> to me the correct solution seems to be to simply drop Referer headers
> from webfs, and add them back to mothra if need be, but the comment
> attached to the Referer-adding code makes me worried about making a
> hasty change.
>
> any thoughts?


  reply	other threads:[~2018-09-18 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-18 19:31 Nick Owens
2018-09-18 20:47 ` Nick Owens [this message]
2018-09-18 21:20   ` [9front] " Kurt H Maier
2018-09-20 11:02     ` Ethan Gardener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH_zEu7mHpoA+Sy7-Wu57yyfiUK5kCLYcC4DQFyYDEdrc7GgqQ@mail.gmail.com \
    --to=mischief@offblast.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).