summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_websocket_accept.c
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-09-13 13:17:16 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-09-13 13:17:16 +0400
commitce964aa30b163e2b3263c5af57c1a6dae7d0cebb (patch)
tree26bf70c1a5991f6471fc4caed8628e068fdc0b7b /src/nxt_websocket_accept.c
parenteba4c3c98fa1bf275d94df8c727f70692ae7eae1 (diff)
parent38bd7e76a134084ab95a4ee3125af1ccd7b35864 (diff)
downloadunit-ce964aa30b163e2b3263c5af57c1a6dae7d0cebb.tar.gz
unit-ce964aa30b163e2b3263c5af57c1a6dae7d0cebb.tar.bz2
Merged with the default branch.1.28.0-1
Diffstat (limited to 'src/nxt_websocket_accept.c')
-rw-r--r--src/nxt_websocket_accept.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_websocket_accept.c b/src/nxt_websocket_accept.c
index 05cbcb56..0e2cef58 100644
--- a/src/nxt_websocket_accept.c
+++ b/src/nxt_websocket_accept.c
@@ -11,8 +11,8 @@
static void
nxt_websocket_base64_encode(u_char *d, const uint8_t *s, size_t len)
{
- u_char c0, c1, c2;
- static u_char basis[] =
+ u_char c0, c1, c2;
+ static const u_char basis[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
while (len > 2) {