From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] Add MARS shooter. Date: Sat, 19 Sep 2015 11:44:12 -0400 Message-ID: References: <8761377ct3.fsf@elephly.net> <871tdu7r3f.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdKJE-0006O6-BA for guix-devel@gnu.org; Sat, 19 Sep 2015 11:44:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdKJB-0000wX-2x for guix-devel@gnu.org; Sat, 19 Sep 2015 11:44:16 -0400 Received: from mail-yk0-f173.google.com ([209.85.160.173]:33202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdKJA-0000vv-Uv for guix-devel@gnu.org; Sat, 19 Sep 2015 11:44:13 -0400 Received: by ykft14 with SMTP id t14so70906592ykf.0 for ; Sat, 19 Sep 2015 08:44:12 -0700 (PDT) In-Reply-To: <871tdu7r3f.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel On Sat, Sep 19, 2015 at 4:25 AM, Ricardo Wurmus wrote: > Hi again, > >> attached is a patch to add MARS. This is really a fun game and you can >> play it with a friend on the same machine. > > Eric Bavier told me on IRC that there is actually a tarball I could use > instead of the git reference, so I tried it: > > $ guix download https://github.com/downloads/thelaui/M.A.R.S./mars_so= urce_0.7.5.tar.gz > starting download of `/tmp/guix-file.674jSo' from `https://github.com= /downloads/thelaui/M.A.R.S./mars_source_0.7.5.tar.gz'... > following redirection to `https://cloud.github.com/downloads/thelaui/= M.A.R.S./mars_source_0.7.5.tar.gz'... > ERROR: Bad media-type header component: .gz > > failed to download "/tmp/guix-file.674jSo" from "https://github.com/d= ownloads/thelaui/M.A.R.S./mars_source_0.7.5.tar.gz" > guix download: error: https://github.com/downloads/thelaui/M.A.R.S./m= ars_source_0.7.5.tar.gz: download failed > > =E2=80=9Cwget --server-response=E2=80=9D tells me that these are the head= ers: > > ~~~~~~ > ... > Location: https://cloud.github.com/downloads/thelaui/M.A.R.S./mars_source= _0.7.5.tar.gz [following] > --2015-09-19 10:21:18-- https://cloud.github.com/downloads/thelaui/M.A.R= .S./mars_source_0.7.5.tar.gz > Resolving cloud.github.com (cloud.github.com)... 54.230.44.22, 54.230.44.= 124, 54.230.44.114, ... > Connecting to cloud.github.com (cloud.github.com)|54.230.44.22|:443... co= nnected. > HTTP request sent, awaiting response... > HTTP/1.1 200 OK > Content-Type: .gz > Content-Length: 86856256 > Connection: keep-alive > Date: Sat, 19 Sep 2015 08:21:20 GMT > Last-Modified: Fri, 29 Jun 2012 16:04:12 GMT > ETag: "bbbc5fda27ce7f35a0660269c11e93d6" > Accept-Ranges: bytes > Server: AmazonS3 > X-Cache: Miss from cloudfront > Via: 1.1 d2fa707728d9947a31db9f8dc3e9e56c.cloudfront.net (CloudFront) > X-Amz-Cf-Id: HSTrtLUzjdqLxCh9_ZoNDe5WGkZcCF7-gs9mGYBYe32i3ADvttP9gA=3D= =3D > ~~~~~~ > > =E2=80=9CContent-Type: .gz=E2=80=9D is what trips up =E2=80=9Cguix downlo= ad=E2=80=9D. What follows > =E2=80=9CContent-Type:=E2=80=9D should be a mime type and I suppose =E2= =80=9C.gz=E2=80=9D is not a valid > mime type. Would it make sense for the HTTP client to be a little more > tolerant about this? No, upstream needs to fix their invalid Content-Type header. We've had this problem a few times, most recently with rubygems.org, and in all cases we've gotten upstream to fix it. Strict header parsing can seem like an issue at times, but it's really a very good feature that the rest of the world seems to ignore. [0] Hope this helps. MARS looks fun. On the subject of games, we should get more games that can be played over the network and make a little Guix gaming club. Xonotic is my #1 request. [0] https://www.gnu.org/software/guile/manual/html_node/Types-and-the-Web.h= tml