Fossil SCM

make correction on image/png magic for mimetype detection

bch 2010-12-30 02:15 trunk
Commit ff53d5ab3e9a46b0a898833029bd405c40b392f7
1 file changed +1 -1
+1 -1
--- src/doc.c
+++ src/doc.c
@@ -49,11 +49,11 @@
4949
int size; /* Length of the prefix */
5050
const char *zMimetype; /* The corresponding mimetype */
5151
} aMime[] = {
5252
{ "GIF87a", 6, "image/gif" },
5353
{ "GIF89a", 6, "image/gif" },
54
- { "\211PNG\r\n\032\r", 8, "image/png" },
54
+ { "\211PNG\r\n\032\n", 8, "image/png" },
5555
{ "\377\332\377", 3, "image/jpeg" },
5656
{ "\377\330\377", 3, "image/jpeg" },
5757
};
5858
5959
x = (const unsigned char*)blob_buffer(pBlob);
6060
--- 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

Keyboard Shortcuts

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