Loading CHANGES +4 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ Changelog Daniel Fandrich (14 Nov 2008) - Added .xml as one of the few common file extensions known by the multipart form generator. Yang Tse (13 Nov 2008) - Refactored configure script detection of functions used to set sockets into non-blocking mode, and decouple function detection from function capability. Loading lib/formdata.c +4 −3 Original line number Diff line number Diff line Loading @@ -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[]={ Loading @@ -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) Loading Loading @@ -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); Loading Loading
CHANGES +4 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ Changelog Daniel Fandrich (14 Nov 2008) - Added .xml as one of the few common file extensions known by the multipart form generator. Yang Tse (13 Nov 2008) - Refactored configure script detection of functions used to set sockets into non-blocking mode, and decouple function detection from function capability. Loading
lib/formdata.c +4 −3 Original line number Diff line number Diff line Loading @@ -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[]={ Loading @@ -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) Loading Loading @@ -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); Loading