bin/contrib/rc-httpd/handlers/serve-static: file(1): try Plan 9 syntax first, then devolve to UNIX.
This commit is contained in:
parent
66f39ebe38
commit
130a3f4454
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ case *.gif
|
|||
case *.png
|
||||
type=image/png
|
||||
case *
|
||||
type=`{file -i $full_path || file -m $full_path} # GROSS
|
||||
type=`{file -m $full_path || file -i $full_path} # GROSS
|
||||
}
|
||||
max_age=3600 # 1 hour
|
||||
echo 'HTTP/1.1 200 OK'^$cr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue