We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61edde0 commit f181898Copy full SHA for f181898
1 file changed
src/main/resources/ch/racic/selenium/helper/download/js/seleniumDownloadHelper.js
@@ -13,14 +13,15 @@ var seleniumDownloadHelper = {
13
} else if (window.ActiveXObject) {
14
var xhr = new ActiveXObject("Microsoft.XMLHTTP");
15
}
16
-
17
xhr.open(method, url, false);
18
if (xhr.overrideMimeType) {
19
xhr.overrideMimeType('text/plain; charset=x-user-defined');
20
} else {
21
xhr.setRequestHeader('Accept-Charset', 'x-user-defined');
22
23
+ if (method == 'POST') {
+ xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
24
+ }
25
xhr.send(param);
26
27
if (xhr.status != 200) return '';
0 commit comments