Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Avoid adding cnsi-list header to none portal-proxy requests #392

Merged
merged 2 commits into from
Jun 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/plugins/cloud-foundry/model/model.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
};

function request(config) {
if (_.isString(config.url) && !_.startsWith(config.url, '/pp')) {
return config;
}

var cnsiGuid = $stateParams.cnsiGuid;
if (angular.isUndefined(config.headers['x-cnap-cnsi-list']) && angular.isDefined(cnsiGuid)) {
config.headers['x-cnap-cnsi-list'] = cnsiGuid;
Expand Down