Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-04-10 13:30:06 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 10:32:13 +0300
commita1debf5cf029edc550d7d46eff7ef4ab1b51a2b2 (patch)
tree04dbad14775ead86b65ec8cd76bde4c0cb463c77 /app/assets/javascripts
parent3a2b60f7a0109cdb84e8727a2625318a746e84dc (diff)
Retry and cancel endpoints send 204 json response. Request is made with type json
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/pipelines/services/pipelines_service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/pipelines/services/pipelines_service.js b/app/assets/javascripts/pipelines/services/pipelines_service.js
index 255cd513490..b21f84b4545 100644
--- a/app/assets/javascripts/pipelines/services/pipelines_service.js
+++ b/app/assets/javascripts/pipelines/services/pipelines_service.js
@@ -40,6 +40,6 @@ export default class PipelinesService {
* @return {Promise}
*/
postAction(endpoint) {
- return Vue.http.post(endpoint, {}, { emulateJSON: true });
+ return Vue.http.post(`${endpoint}.json`);
}
}