Skip to content

Commit

Permalink
Update fileserver from ink
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephist committed Aug 1, 2019
1 parent 8453007 commit 76bc7ba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/fileserver.ink
Expand Up @@ -20,14 +20,14 @@ ALLOWINDEX := false
` short non-comprehensive list of MIME types `
TYPES := {
` text formats `
html: 'text/html'
js: 'text/javascript'
css: 'text/css'
txt: 'text/plain'
md: 'text/plain'
html: 'text/html; charset=utf-8'
js: 'text/javascript; charset=utf-8'
css: 'text/css; charset=utf-8'
txt: 'text/plain; charset=utf-8'
md: 'text/plain; charset=utf-8'
` serve go & ink source code as plain text`
ink: 'text/plain'
go: 'text/plain'
ink: 'text/plain; charset=utf-8'
go: 'text/plain; charset=utf-8'

` image formats `
jpg: 'image/jpeg'
Expand All @@ -39,6 +39,7 @@ TYPES := {
` other misc `
pdf: 'application/pdf'
zip: 'application/zip'
json: 'application/json'
}

` prepare standard header `
Expand Down

0 comments on commit 76bc7ba

Please sign in to comment.