diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-28 17:24:01 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-28 17:24:01 +0300 |
commit | ec302c6c0cf7d4b3a19bea43ce380dbaa60b363d (patch) | |
tree | bc49bd47ba6242c8d9f472c769cf9ad015cf721d /app/assets/javascripts/api.js | |
parent | 1c76a0c824dcb0250ebb5f3d480751c8154ed62a (diff) |
Repove tempToken and tempPrivateToken from repo code
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r-- | app/assets/javascripts/api.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index c77e4dba098..76b724e1bcb 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -96,15 +96,12 @@ const Api = { .done(projects => callback(projects)); }, - commitMultiple(id, data, callback, token) { + commitMultiple(id, data, callback) { // see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions const url = Api.buildUrl(Api.commitPath) .replace(':id', id); return $.ajax({ url, - headers: { - PRIVATE_TOKEN: token, - }, type: 'POST', contentType: 'application/json; charset=utf-8', data: JSON.stringify(data), |