general fixes
This commit is contained in:
parent
c407842754
commit
f6de1cd18b
4 changed files with 33 additions and 44 deletions
|
@ -22,8 +22,8 @@ export async function trackEvent(
|
|||
|
||||
function getHeaders(req?: NextIncomingMessage): Headers | undefined {
|
||||
if (req) {
|
||||
// we only need the user-agent header
|
||||
return new Headers({
|
||||
'accept-language': req.headers['accept-language'] ?? '',
|
||||
'user-agent': req.headers['user-agent'] ?? '',
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue