Skip to content

Commit

Permalink
adding example of header modification
Browse files Browse the repository at this point in the history
  • Loading branch information
omnipounder committed Aug 7, 2021
1 parent ab84f19 commit d0f26cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const app = uWS./* SSL*/App({
cert_file_name: 'misc/cert.pem',
passphrase: '1234'
}).get('/*', (res, req) => {
res.end('Hello World!');
res.writeHeader('IsExample', 'Yes').end('Hello World!');
})
.listen(port, (token) => {
if (token) {
Expand Down

0 comments on commit d0f26cf

Please sign in to comment.