Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37173 Stop attempting to set User-Agent from core JS

This leads to some browsers throwing warnings that it is unsafe to set the
User-Agent. It doesn't help us in any way particularly either.
  • Loading branch information...
commit b8438776db109a1dafd7db90340faa6933444e6e 1 parent 10ad21d
@andrewnicols andrewnicols authored
Showing with 3 additions and 6 deletions.
  1. +2 −4 comment/comment.js
  2. +1 −2  lib/form/filemanager.js
View
6 comment/comment.js
@@ -157,8 +157,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
scope: scope
},
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'User-Agent': 'MoodleComment/3.0'
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
data: build_querystring(params)
};
@@ -472,8 +471,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
scope: this
},
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'User-Agent': 'MoodleComment/3.0'
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
data: build_querystring(data)
};
View
3  lib/form/filemanager.js
@@ -169,8 +169,7 @@ M.form_filemanager.init = function(Y, options) {
scope: scope
},
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'User-Agent': 'MoodleFileManager/3.0'
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
data: build_querystring(params)
};
Please sign in to comment.
Something went wrong with that request. Please try again.