Skip to content

Commit

Permalink
MDL-37173 Stop attempting to set User-Agent from core JS
Browse files Browse the repository at this point in the history
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
Andrew Robert Nicols committed Jan 8, 2013
1 parent 9da506c commit 98e1ff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down Expand Up @@ -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)
};
Expand Down
3 changes: 1 addition & 2 deletions lib/form/filemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,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)
};
Expand Down

0 comments on commit 98e1ff5

Please sign in to comment.