Fixing bug 244717 (patch by keeda@hotpop.com). Make SOAP rqequests state the charset of their payload. r+sr=jst@mozilla.jstenback.com, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_7_BRANCH@157527 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -349,6 +349,11 @@ NS_IMETHODIMP nsHTTPSOAPTransport::SyncCall(nsISOAPCall * aCall, nsISOAPResponse
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = request->SetRequestHeader(NS_LITERAL_CSTRING("Content-Type"),
|
||||
NS_LITERAL_CSTRING("text/xml; charset=UTF-8"));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
nsAutoString action;
|
||||
rv = aCall->GetActionURI(action);
|
||||
if (NS_FAILED(rv))
|
||||
@@ -564,6 +569,11 @@ NS_IMETHODIMP
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = request->SetRequestHeader(NS_LITERAL_CSTRING("Content-Type"),
|
||||
NS_LITERAL_CSTRING("text/xml; charset=UTF-8"));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
// Apache Axis web services WSDL files say to set soapAction to "" and require it to be sent.
|
||||
// So only check if its not void instead of using AStringIsNull.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user