Fossil SCM

Added webp mimetype, a pedantic constness tweak in the mimetype table, and a minor typo fix.

stephan 2019-12-13 06:06 trunk
Commit 5590fb9e0f64194d70eb1327e524753399e777e66e900c3b697f560eb021c1cb
2 files changed +2 -1 +1 -1
+2 -1
--- src/doc.c
+++ src/doc.c
@@ -39,11 +39,11 @@
3939
4040
/* A table of mimetypes based on file content prefixes
4141
*/
4242
static const struct {
4343
const char *zPrefix; /* The file prefix */
44
- int size; /* Length of the prefix */
44
+ const int size; /* Length of the prefix */
4545
const char *zMimetype; /* The corresponding mimetype */
4646
} aMime[] = {
4747
{ "GIF87a", 6, "image/gif" },
4848
{ "GIF89a", 6, "image/gif" },
4949
{ "\211PNG\r\n\032\n", 8, "image/png" },
@@ -269,10 +269,11 @@
269269
{ "viv", 3, "video/vnd.vivo" },
270270
{ "vivo", 4, "video/vnd.vivo" },
271271
{ "vrml", 4, "model/vrml" },
272272
{ "wav", 3, "audio/x-wav" },
273273
{ "wax", 3, "audio/x-ms-wax" },
274
+ { "webp", 4, "image/webp" },
274275
{ "wiki", 4, "text/x-fossil-wiki" },
275276
{ "wma", 3, "audio/x-ms-wma" },
276277
{ "wmv", 3, "video/x-ms-wmv" },
277278
{ "wmx", 3, "video/x-ms-wmx" },
278279
{ "wrl", 3, "model/vrml" },
279280
--- src/doc.c
+++ src/doc.c
@@ -39,11 +39,11 @@
39
40 /* A table of mimetypes based on file content prefixes
41 */
42 static const struct {
43 const char *zPrefix; /* The file prefix */
44 int size; /* Length of the prefix */
45 const char *zMimetype; /* The corresponding mimetype */
46 } aMime[] = {
47 { "GIF87a", 6, "image/gif" },
48 { "GIF89a", 6, "image/gif" },
49 { "\211PNG\r\n\032\n", 8, "image/png" },
@@ -269,10 +269,11 @@
269 { "viv", 3, "video/vnd.vivo" },
270 { "vivo", 4, "video/vnd.vivo" },
271 { "vrml", 4, "model/vrml" },
272 { "wav", 3, "audio/x-wav" },
273 { "wax", 3, "audio/x-ms-wax" },
 
274 { "wiki", 4, "text/x-fossil-wiki" },
275 { "wma", 3, "audio/x-ms-wma" },
276 { "wmv", 3, "video/x-ms-wmv" },
277 { "wmx", 3, "video/x-ms-wmx" },
278 { "wrl", 3, "model/vrml" },
279
--- src/doc.c
+++ src/doc.c
@@ -39,11 +39,11 @@
39
40 /* A table of mimetypes based on file content prefixes
41 */
42 static const struct {
43 const char *zPrefix; /* The file prefix */
44 const int size; /* Length of the prefix */
45 const char *zMimetype; /* The corresponding mimetype */
46 } aMime[] = {
47 { "GIF87a", 6, "image/gif" },
48 { "GIF89a", 6, "image/gif" },
49 { "\211PNG\r\n\032\n", 8, "image/png" },
@@ -269,10 +269,11 @@
269 { "viv", 3, "video/vnd.vivo" },
270 { "vivo", 4, "video/vnd.vivo" },
271 { "vrml", 4, "model/vrml" },
272 { "wav", 3, "audio/x-wav" },
273 { "wax", 3, "audio/x-ms-wax" },
274 { "webp", 4, "image/webp" },
275 { "wiki", 4, "text/x-fossil-wiki" },
276 { "wma", 3, "audio/x-ms-wma" },
277 { "wmv", 3, "video/x-ms-wmv" },
278 { "wmx", 3, "video/x-ms-wmx" },
279 { "wrl", 3, "model/vrml" },
280
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -201,11 +201,11 @@
201201
202202
<blockquote><verbatim>
203203
<script nonce='$FOSSIL_NONCE'>...</script>
204204
</verbatim></blockquote>
205205
206
-Except, of course, the $FOSSIL_NONCE is replace by the value of the
206
+Except, of course, the $FOSSIL_NONCE is replaced by the value of the
207207
FOSSIL_NONCE environment variable.
208208
209209
If the HTTP request includes content (for example if this is a POST request)
210210
then the CONTENT_LENGTH value will be positive and the data for the content
211211
will be readable on standard input.
212212
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -201,11 +201,11 @@
201
202 <blockquote><verbatim>
203 <script nonce='$FOSSIL_NONCE'>...</script>
204 </verbatim></blockquote>
205
206 Except, of course, the $FOSSIL_NONCE is replace by the value of the
207 FOSSIL_NONCE environment variable.
208
209 If the HTTP request includes content (for example if this is a POST request)
210 then the CONTENT_LENGTH value will be positive and the data for the content
211 will be readable on standard input.
212
--- www/serverext.wiki
+++ www/serverext.wiki
@@ -201,11 +201,11 @@
201
202 <blockquote><verbatim>
203 <script nonce='$FOSSIL_NONCE'>...</script>
204 </verbatim></blockquote>
205
206 Except, of course, the $FOSSIL_NONCE is replaced by the value of the
207 FOSSIL_NONCE environment variable.
208
209 If the HTTP request includes content (for example if this is a POST request)
210 then the CONTENT_LENGTH value will be positive and the data for the content
211 will be readable on standard input.
212

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button