> 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.