Commit 9164c472 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Adds missing Content-Type header to form postings.

Detail:
  The NT based CTS plugin fails to put Content-Type headers in
    posted form submissions.  The Microsoft server seems happy
    with this illegal form, but AcornHTTP isn't - and it decides
    that the post attempt is bogus and rejects it.  Instead of
    that, it now adds the application/x-www-form-urlencoded
    as the default content type.
Admin:
  Tested by proxying the NT plugin via WebServe and verified that
    the content-type is being added.

Version 0.86. Tagged as 'HTTP-0_86'
parent 13fe28a9
/* (0.85)
/* (0.86)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.85
#define Module_MajorVersion_CMHG 0.86
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 15 Feb 1999
#define Module_Date_CMHG 20 May 1999
#define Module_MajorVersion "0.85"
#define Module_Version 85
#define Module_MajorVersion "0.86"
#define Module_Version 86
#define Module_MinorVersion ""
#define Module_Date "15 Feb 1999"
#define Module_Date "20 May 1999"
#define Module_FullVersion "0.86"
......@@ -474,7 +474,7 @@ static int http_validate_user_supplied_data(Session *ses)
#ifdef TRACE
protocol_debug("PROTOCOL ERROR: Client did not specify a content-type\n");
#endif
return 0;
http_add_header(&ses->headers, "content-type", "application/x-www-form-urlencoded");
}
hdr = http_find_header(ses->headers, "content-length");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment