Render HTML files as text/html in raw.

master
Nick Sergeant 2013-04-25 12:32:31 -04:00
parent 632240829c
commit 4ae90f8678
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ def raw(request, snipt_key, lexer=None):
if snipt.lexer == 'js':
mimetype='text/javascript'
elif snipt.lexer == 'html':
mimetype='text/html'
else:
mimetype='text/plain'