Skip to content

Commit

Permalink
test(collector): temporarily bring back the mock agent Server header
Browse files Browse the repository at this point in the history
We have a couple of tests that install the latest released package from
npm, and those still look for the Server header, until the previous
commit has been released as a package. After that, we can remove the
Server header from the mock agent.
  • Loading branch information
Bastian Krol committed May 9, 2023
1 parent 7d6a05b commit 4ece2af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/collector/test/apps/agentStub.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ app.use(
})
);

app.use((req, res, next) => {
res.set('server', 'Instana Agent');
next();
});

app.get('/', (req, res) => {
res.send('OK');
});
Expand Down

0 comments on commit 4ece2af

Please sign in to comment.