Fossil SCM
Added webp mimetype, a pedantic constness tweak in the mimetype table, and a minor typo fix.
Commit
5590fb9e0f64194d70eb1327e524753399e777e66e900c3b697f560eb021c1cb
Parent
4a7760e368090a7…
2 files changed
+2
-1
+1
-1
+2
-1
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -39,11 +39,11 @@ | ||
| 39 | 39 | |
| 40 | 40 | /* A table of mimetypes based on file content prefixes |
| 41 | 41 | */ |
| 42 | 42 | static const struct { |
| 43 | 43 | const char *zPrefix; /* The file prefix */ |
| 44 | - int size; /* Length of the prefix */ | |
| 44 | + const int size; /* Length of the prefix */ | |
| 45 | 45 | const char *zMimetype; /* The corresponding mimetype */ |
| 46 | 46 | } aMime[] = { |
| 47 | 47 | { "GIF87a", 6, "image/gif" }, |
| 48 | 48 | { "GIF89a", 6, "image/gif" }, |
| 49 | 49 | { "\211PNG\r\n\032\n", 8, "image/png" }, |
| @@ -269,10 +269,11 @@ | ||
| 269 | 269 | { "viv", 3, "video/vnd.vivo" }, |
| 270 | 270 | { "vivo", 4, "video/vnd.vivo" }, |
| 271 | 271 | { "vrml", 4, "model/vrml" }, |
| 272 | 272 | { "wav", 3, "audio/x-wav" }, |
| 273 | 273 | { "wax", 3, "audio/x-ms-wax" }, |
| 274 | + { "webp", 4, "image/webp" }, | |
| 274 | 275 | { "wiki", 4, "text/x-fossil-wiki" }, |
| 275 | 276 | { "wma", 3, "audio/x-ms-wma" }, |
| 276 | 277 | { "wmv", 3, "video/x-ms-wmv" }, |
| 277 | 278 | { "wmx", 3, "video/x-ms-wmx" }, |
| 278 | 279 | { "wrl", 3, "model/vrml" }, |
| 279 | 280 |
| --- 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 |
+1
-1
| --- www/serverext.wiki | ||
| +++ www/serverext.wiki | ||
| @@ -201,11 +201,11 @@ | ||
| 201 | 201 | |
| 202 | 202 | <blockquote><verbatim> |
| 203 | 203 | <script nonce='$FOSSIL_NONCE'>...</script> |
| 204 | 204 | </verbatim></blockquote> |
| 205 | 205 | |
| 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 | |
| 207 | 207 | FOSSIL_NONCE environment variable. |
| 208 | 208 | |
| 209 | 209 | If the HTTP request includes content (for example if this is a POST request) |
| 210 | 210 | then the CONTENT_LENGTH value will be positive and the data for the content |
| 211 | 211 | will be readable on standard input. |
| 212 | 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 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 |