Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattmann committed Feb 11, 2025
1 parent 9828078 commit 1bccdee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ops/performance-test/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ export default function() {
}

function measureCampRelation(value) {
const urlWithoutTemplate = value.href.replace(/{.*$/, "");
const urlWithoutTemplate = value.href //.replace(/{.*$/, "");
const urlWithReplacedId = urlWithoutTemplate.replace(/(\/|%2F)[0-9a-f]{6,}\/?/, "/{id}/");
const url = `${host}${urlWithReplacedId}.jsonhal`;
const url = `${host}${urlWithoutTemplate}`;
try {
const response = http.get(url, { headers: addAuthorizationHeadersIfNecessary() });
const response = http.get(url, { headers: addAuthorizationHeadersIfNecessary({ 'accept': 'application/hal+json' }) });
const trend = metricsMap.get(urlWithReplacedId);
if (!trend) {
console.log(`trend for ${urlWithReplacedId} not found`);
Expand Down

0 comments on commit 1bccdee

Please sign in to comment.