diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-08-10 16:38:32 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-08-14 11:11:01 -0500 |
commit | 51c8f9e198a0174c4ef9abbbce8f0c39d2bb0d2c (patch) | |
tree | 5214ad4459c87607193565f2123a4de02e274faf /app | |
parent | a2cb73b8be84376c1a647d38f3faa78d2ddec10a (diff) | |
download | gitlab-ce-51c8f9e198a0174c4ef9abbbce8f0c39d2bb0d2c.tar.gz |
Add comment about why we need to stop parsing JSON
Fix
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12198#note_37146815
See https://gitlab.slack.com/archives/C0GQHHPGW/p1501779964878178
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/repo/services/repo_service.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/services/repo_service.js b/app/assets/javascripts/repo/services/repo_service.js index 8fba928e456..bebe4e42fe1 100644 --- a/app/assets/javascripts/repo/services/repo_service.js +++ b/app/assets/javascripts/repo/services/repo_service.js @@ -22,6 +22,7 @@ const RepoService = { getRaw(url) { return axios.get(url, { + // Stop Axios from parsing a JSON file into a JS object transformResponse: [res => res], }); }, |