summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-09-18 16:09:03 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2018-11-25 17:22:25 +0100
commit62fd535c5f77cea773652fa2f371025c4fd1f32c (patch)
treee839470fd3dfba57ffd7ed90ac3cb3f2f7743224 /doc/examples
parent0e688a252568901e0b7b0eb2b53c396e62bf4d61 (diff)
aptwebserver: Guess Content-Type from filename extension
Browsing pages served via aptwebserver is working better if we tell the browser the Content-Type which for this simple usecase we can just do by guessing based on the file extension – and because hardcoding a list would be boring we just reuse the mime.types data from mime-support if available and allow it to be overridden by files and config. Gbp-Dch: Ignore
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions