Skip to content
Snippets Groups Projects
Commit 1e251a64 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Default Content-Type for formparts has changed to "application/octet-stream".

This seems more appropriate, and I believe mozilla and the likes do this.

.html files now get text/html as Content-Type.

Pointed out in bug report #839806.
parent 776f0bd9
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ Content-Disposition: form-data; name="FILECONTENT"
/* What kind of Content-Type to use on un-specified files with unrecognized
extensions. */
#define HTTPPOST_CONTENTTYPE_DEFAULT "text/plain"
#define HTTPPOST_CONTENTTYPE_DEFAULT "application/octet-stream"
/* This is a silly duplicate of the function in main.c to enable this source
to compile stand-alone for better debugging */
......@@ -267,7 +267,7 @@ int FormParse(char *input,
{".jpg", "image/jpeg"},
{".jpeg", "image/jpeg"},
{".txt", "text/plain"},
{".html", "text/plain"}
{".html", "text/html"}
};
if(prevtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment