Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1c099c
)
doc: Documented X-Ash-Content-Type for sendfile.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 13 Dec 2011 03:09:11 +0000
(
04:09
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 13 Dec 2011 03:09:11 +0000
(
04:09
+0100)
doc/sendfile.doc
patch
|
blob
|
blame
|
history
diff --git
a/doc/sendfile.doc
b/doc/sendfile.doc
index
3c31929
..
a958030
100644
(file)
--- a/
doc/sendfile.doc
+++ b/
doc/sendfile.doc
@@
-26,6
+26,12
@@
empty. However, if the *-f* argument is given, the given 'FILE' will
always be served instead, and the `X-Ash-File` header and any rest
string is ignored.
always be served instead, and the `X-Ash-File` header and any rest
string is ignored.
+A file's MIME type may be specified explicitly either by using the
+*-c* option, or by passing the header `X-Ash-Content-Type` to
+*sendfile* with the MIME type of the file. That header might, for
+instance, be set using the *set* directives of *dirplex*(1) or
+*patplex*(1).
+
If a MIME-type is not explicitly specified, *sendfile* uses
*libmagic*(3) to determine the MIME-type automatically. If *sendfile*
is compiled with support for filesystem attributes (see *attr*(5) if
If a MIME-type is not explicitly specified, *sendfile* uses
*libmagic*(3) to determine the MIME-type automatically. If *sendfile*
is compiled with support for filesystem attributes (see *attr*(5) if