Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
uurien committed Jun 11, 2024
1 parent 2ce6fcf commit 54297ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/dd-trace/src/appsec/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const identificationHeaders = [
'akamai-user-risk'
]

// this request headers are always collected, and it breaks the expected spec orders
// these request headers are always collected - it breaks the expected spec orders
const MANDATORY_REQUEST_HEADERS_MAP = mapHeaderAndTags([
'content-type',
'user-agent',
Expand Down
10 changes: 5 additions & 5 deletions packages/dd-trace/test/appsec/reporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ describe('reporter', () => {
'x-sigsci-tags': 'g',
'akamai-user-risk': 'h',
'content-type': 'i',
'user-agent': 'j',
accept: 'k'
accept: 'j',
'user-agent': 'k'
}
}

Expand All @@ -404,9 +404,9 @@ describe('reporter', () => {
'http.request.headers.x-sigsci-tags': 'g',
'http.request.headers.akamai-user-risk': 'h',
'http.request.headers.content-type': 'i',
'http.request.headers.user-agent': 'j',
'http.request.headers.accept': 'k',
'http.useragent': 'j'
'http.request.headers.accept': 'j',
'http.request.headers.user-agent': 'k',
'http.useragent': 'k'
})
})

Expand Down

0 comments on commit 54297ad

Please sign in to comment.