Skip to content

Commit

Permalink
change header name, this is no longer a uuid
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Barsan <[email protected]>
  • Loading branch information
dianabarsan committed Nov 6, 2024
1 parent 88d4030 commit 64b6e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/server-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const environment = require('@medic/environment');
const isClientHuman = require('./is-client-human');
const logger = require('@medic/logger');
const MEDIC_BASIC_AUTH = 'Basic realm="Medic Web Services"';
const REQUEST_ID_HEADER = 'X-Request-UUID';
const REQUEST_ID_HEADER = 'X-Request-Id';
const cookie = require('./services/cookie');
const {InvalidArgumentError} = require('@medic/cht-datasource');

Expand Down
2 changes: 1 addition & 1 deletion api/tests/mocha/db.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('db', () => {
expect(headers.length).to.equal(4);
headers.forEach((header) => {
expect(header.get('X-Medic-Service')).to.equal('api');
expect(header.get('X-Request-UUID')).to.equal('the_id');
expect(header.get('X-Request-Id')).to.equal('the_id');
});
});

Expand Down
2 changes: 1 addition & 1 deletion api/tests/mocha/server-utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,6 @@ describe('Server utils', () => {
});

it('should export request header', () => {
chai.expect(serverUtils.REQUEST_ID_HEADER).to.equal('X-Request-UUID');
chai.expect(serverUtils.REQUEST_ID_HEADER).to.equal('X-Request-Id');
});
});

0 comments on commit 64b6e99

Please sign in to comment.