diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/formdata.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/formdata.c b/lib/formdata.c index a370e65a4..483c9f82e 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -267,7 +267,7 @@ static const char * ContentTypeForFilename (const char *filename, * extensions and pick the first we match! */ struct ContentType { - const char *extension; + char extension[6]; const char *type; }; static const struct ContentType ctts[]={ @@ -275,7 +275,8 @@ static const char * ContentTypeForFilename (const char *filename, {".jpg", "image/jpeg"}, {".jpeg", "image/jpeg"}, {".txt", "text/plain"}, - {".html", "text/html"} + {".html", "text/html"}, + {".xml", "application/xml"} }; if(prevtype) @@ -1733,7 +1734,7 @@ char *Curl_FormBoundary(void) the same form won't be identical */ size_t i; - static const char table16[]="abcdef0123456789"; + static const char table16[]="0123456789abcdef"; retstring = malloc(BOUNDARY_LENGTH+1); |