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
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-29 11:38:41 +0300
committerPhil Hughes <me@iamphill.com>2018-06-29 11:38:41 +0300
commit04f7e9aa42441d35d9a7e076841e695d2804a321 (patch)
tree2793d2a04a3fe67d214a0972f453e78d610dcbb7 /app
parent8bb58fa53345c24621bc060012dafa4a3d3d0f2f (diff)
restored normalizing headers
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/ide/stores/actions/file.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/file.js b/app/assets/javascripts/ide/stores/actions/file.js
index 314bb01efdd..6c0887e11ee 100644
--- a/app/assets/javascripts/ide/stores/actions/file.js
+++ b/app/assets/javascripts/ide/stores/actions/file.js
@@ -1,4 +1,5 @@
import { __ } from '../../../locale';
+import { normalizeHeaders } from '../../../lib/utils/common_utils';
import eventHub from '../../eventhub';
import service from '../../services';
import * as types from '../mutation_types';
@@ -66,7 +67,8 @@ export const getFileData = ({ state, commit, dispatch }, { path, makeFileActive
`${gon.relative_url_root ? gon.relative_url_root : ''}${file.url.replace('/-/', '/')}`,
)
.then(({ data, headers }) => {
- setPageTitle(decodeURI(headers['page-title']));
+ const normalizedHeaders = normalizeHeaders(headers);
+ setPageTitle(decodeURI(normalizedHeaders['PAGE-TITLE']));
commit(types.SET_FILE_DATA, { data, file });
commit(types.TOGGLE_FILE_OPEN, path);