x-download-this ?
Można lepiej:
function serve_file {
local file="‘fix_path "$1"`"
echo ’HTTP/1.1 200 OK'
printf 'Content-type: %s' "`file -i "$file" | cut -d " " -f 2-`"
echo
debug INFO serving file "$file"
cat "$file"
}

Python, BASH, PHP and JavaScript programmer, Linux fanatic user, and uber-geek.
My name is Piotr Gabryjeluk. I currently work at Allegro Group. I worked at Wikidot.com and several other companies.
I'm blogging mostly about web, Ubuntu, BASH, Python and geek or funny stuff.