diff options
author | Mathias Bynens <mathias@qiwi.be> | 2012-01-02 15:25:03 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-01-02 15:25:03 +0100 |
commit | ec4b44ef05dfb0f3209c14d47d9875d4d6ff9bb6 (patch) | |
tree | 6449ba94557e42af3a75280d70ab0d0b3afb01a2 /.functions | |
parent | 1a71776fefe91349892db4961016807acab7f50d (diff) | |
download | dotfiles-ec4b44ef05dfb0f3209c14d47d9875d4d6ff9bb6.tar.gz dotfiles-ec4b44ef05dfb0f3209c14d47d9875d4d6ff9bb6.tar.bz2 dotfiles-ec4b44ef05dfb0f3209c14d47d9875d4d6ff9bb6.zip |
Serve unknown file types as UTF-8, as suggested by @janmoesen
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ function server() { local port="${1:-8000}" open "http://localhost:${port}/" # Set the default Content-Type to `text/plain` instead of `application/octet-stream` - python -c "import SimpleHTTPServer; import sys; sys.argv = [None, '$port']; SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map[''] = 'text/plain'; SimpleHTTPServer.test();" + python -c "import SimpleHTTPServer; import sys; sys.argv = [None, '$port']; SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map[''] = 'text/plain;charset=UTF-8'; SimpleHTTPServer.test();" } # Test if HTTP compression (RFC 2616 + SDCH) is enabled for a given URL. |