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

Commit

Permalink
Merge pull request #392 from hpcloud/646-cnsi-interceptor-github-url
Browse files Browse the repository at this point in the history
Avoid adding cnsi-list header to none portal-proxy requests
  • Loading branch information
sean-sq-chen committed Jun 22, 2016
2 parents b2bbf1b + e52b585 commit ac0d66a
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit ac0d66a

Please sign in to comment.