From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH] Add MARS shooter. Date: Fri, 25 Sep 2015 17:30:53 -0500 Message-ID: <87oagqrufu.fsf@dustycloud.org> References: <8761377ct3.fsf@elephly.net> <871tdu7r3f.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zfbib-0002vW-Bu for guix-devel@gnu.org; Fri, 25 Sep 2015 18:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfbiW-00042z-Eo for guix-devel@gnu.org; Fri, 25 Sep 2015 18:43:53 -0400 Received: from dustycloud.org ([50.116.34.160]:56120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfbiW-000429-AE for guix-devel@gnu.org; Fri, 25 Sep 2015 18:43:48 -0400 In-reply-to: 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: "Thompson, David" Cc: guix-devel Thompson, David writes: > 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] So this is less about this package itself but rather this general issue of parsing Content-Type headers, which has come up repeatedly... "Be conservative in what you do, be liberal in what you accept from others"... when it comes to the web, we should follow the Robustness Principle: https://en.wikipedia.org/wiki/Robustness_principle It's absolutely true that Guile should enforce producing correct HTTP requests and responses. But as much as it's irritating as schemers, probably the ultimate group of "do the right thing" if there ever was one in the programming world, if we cut off sites that do the slightly-wrong thing, we're cutting a lot of potential users from a lot of the web... making Guile a lot less attractive of a language for scraping, etc... We should at least provide some sort of option to permit fuzziness, or to convert incoming http requests to fill in some default value, or etc? - Chris