summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/services
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-04-10 11:30:06 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 09:32:13 +0200
commita1debf5cf029edc550d7d46eff7ef4ab1b51a2b2 (patch)
tree04dbad14775ead86b65ec8cd76bde4c0cb463c77 /app/assets/javascripts/pipelines/services
parent3a2b60f7a0109cdb84e8727a2625318a746e84dc (diff)
downloadgitlab-ce-a1debf5cf029edc550d7d46eff7ef4ab1b51a2b2.tar.gz
Retry and cancel endpoints send 204 json response. Request is made with type json
Diffstat (limited to 'app/assets/javascripts/pipelines/services')
-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`);
}
}