Skip to content

Commit

Permalink
Add validation for mode basic
Browse files Browse the repository at this point in the history
  • Loading branch information
survivant authored Dec 10, 2023
1 parent 8ddec6b commit caca816
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const interpolateVars = (request, envVars = {}, collectionVariables = {}, proces
// todo: we have things happening in two places w.r.t basic auth
// need to refactor this in the future
// the request.auth (basic auth) object gets set inside the prepare-request.js file
if (request.auth) {
if (request.auth && request.auth.mode === undefined) {
const username = interpolate(request.auth.username) || '';
const password = interpolate(request.auth.password) || '';

Expand Down

0 comments on commit caca816

Please sign in to comment.