Fossil SCM
make correction on image/png magic for mimetype detection
Commit
ff53d5ab3e9a46b0a898833029bd405c40b392f7
Parent
fab89453c50ecfa…
1 file changed
+1
-1
+1
-1
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -49,11 +49,11 @@ | ||
| 49 | 49 | int size; /* Length of the prefix */ |
| 50 | 50 | const char *zMimetype; /* The corresponding mimetype */ |
| 51 | 51 | } aMime[] = { |
| 52 | 52 | { "GIF87a", 6, "image/gif" }, |
| 53 | 53 | { "GIF89a", 6, "image/gif" }, |
| 54 | - { "\211PNG\r\n\032\r", 8, "image/png" }, | |
| 54 | + { "\211PNG\r\n\032\n", 8, "image/png" }, | |
| 55 | 55 | { "\377\332\377", 3, "image/jpeg" }, |
| 56 | 56 | { "\377\330\377", 3, "image/jpeg" }, |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | 59 | x = (const unsigned char*)blob_buffer(pBlob); |
| 60 | 60 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -49,11 +49,11 @@ | |
| 49 | int size; /* Length of the prefix */ |
| 50 | const char *zMimetype; /* The corresponding mimetype */ |
| 51 | } aMime[] = { |
| 52 | { "GIF87a", 6, "image/gif" }, |
| 53 | { "GIF89a", 6, "image/gif" }, |
| 54 | { "\211PNG\r\n\032\r", 8, "image/png" }, |
| 55 | { "\377\332\377", 3, "image/jpeg" }, |
| 56 | { "\377\330\377", 3, "image/jpeg" }, |
| 57 | }; |
| 58 | |
| 59 | x = (const unsigned char*)blob_buffer(pBlob); |
| 60 |
| --- src/doc.c | |
| +++ src/doc.c | |
| @@ -49,11 +49,11 @@ | |
| 49 | int size; /* Length of the prefix */ |
| 50 | const char *zMimetype; /* The corresponding mimetype */ |
| 51 | } aMime[] = { |
| 52 | { "GIF87a", 6, "image/gif" }, |
| 53 | { "GIF89a", 6, "image/gif" }, |
| 54 | { "\211PNG\r\n\032\n", 8, "image/png" }, |
| 55 | { "\377\332\377", 3, "image/jpeg" }, |
| 56 | { "\377\330\377", 3, "image/jpeg" }, |
| 57 | }; |
| 58 | |
| 59 | x = (const unsigned char*)blob_buffer(pBlob); |
| 60 |