We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file:///home/pablo/nosdav/server/index.js:161 const nostr = headers.authorization.replace('Nostr ', '') ^ TypeError: Cannot read properties of undefined (reading 'replace') at handlePut (file:///home/pablo/nosdav/server/index.js:161:39) at Server.handleRequest (file:///home/pablo/nosdav/server/index.js:33:7) at Server.emit (node:events:513:28) at parserOnIncoming (node:_http_server:1065:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17) Node.js v18.13.0
The text was updated successfully, but these errors were encountered:
Thanks for the report, I'll look at this probably later today, just finishing the profile proof of concept.
Sorry, something went wrong.
I've changed
const nostr = headers.authorization.replace('Nostr ', '')
to
const nostr = headers?.authorization?.replace('Nostr ', '') console.log('nostr auth header', nostr)
in handlePut
This should prevent the crash.
prevent crash when no authorization header, addresses #9
7435495
No branches or pull requests
The text was updated successfully, but these errors were encountered: