Re: [dev] hgweb typically sucks

From: Anders Andersson <pipatron_AT_gmail.com>
Date: Fri, 1 Apr 2011 16:25:47 +0200

> On 1 Apr 2011, at 2:55 pm, Ethan Grammatikidis wrote:
>>
>> On 1 Apr 2011, at 2:33 pm, Nick wrote:
>>>
>>>  `curl -I
>>>
>>> http://hg.suckless.org/stali-toolchain/raw-file/e2f2828820b4/build/i386-linux-uclibc/include/a.out.h`
>>> shows that hg is presenting it to the browser as:
>>> Content-Disposition: inline
>>
>> Good gracious! I assumed it was 'download' rather than 'inline' based on
>> my browser's behaviour.
>
> Verified that it's 'inline' on hg.youterm.com too, and that Opera also tries
> to download it. (Actually, Opera's been doing an awful lot of things the
> same as Firefox lately.) Surf also downloads it, leaving Safari the only
> browser I have which behaves correctly. >.<

This is because people make up random file types like x-chdr instead
of using text/plain as it should be when presenting a C header file
over HTTP. It's a plain text file that should not be parsed by the
browser.
Received on Fri Apr 01 2011 - 16:25:47 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 01 2011 - 16:36:03 CEST