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
The following readStream function is the culprit: https://github.com/song940/node-dns/blob/b2fdf66a1987e2597ad1b1f0948d0ac5c4acbfe2/server/doh.js#L22-L28
readStream
It's initialising the buffer as a string and not converting it for the resolve() call. It should be:
resolve()
const readStream = stream => new Promise((resolve, reject) => { let buffer = ''; stream .on('error', reject) .on('data', chunk => { buffer += chunk; }) .on('end', () => resolve(Buffer.from(buffer))); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following
readStream
function is the culprit:https://github.com/song940/node-dns/blob/b2fdf66a1987e2597ad1b1f0948d0ac5c4acbfe2/server/doh.js#L22-L28
It's initialising the buffer as a string and not converting it for the
resolve()
call.It should be:
The text was updated successfully, but these errors were encountered: