aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:22:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:22:35 +0300
commit84a92e8a7130c351b200dedc41b317e8a75ffcac (patch)
treeddb07a7e01bce6581e3703b848062fa673ce1d5f
parentba2d078858f4bd7c4e83cd7c44cc940fa9edb6d9 (diff)
downloadlibmicrohttpd-84a92e8a7130c351b200dedc41b317e8a75ffcac.tar.gz
libmicrohttpd-84a92e8a7130c351b200dedc41b317e8a75ffcac.zip
Added more workarounds for uncrustify bugs
-rw-r--r--doc/examples/websocket.c4
-rw-r--r--src/microhttpd_ws/test_websocket_browser.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/websocket.c b/doc/examples/websocket.c
index 5cdf0423..77bc55cd 100644
--- a/doc/examples/websocket.c
+++ b/doc/examples/websocket.c
@@ -28,7 +28,7 @@
28 "<script>\n" \ 28 "<script>\n" \
29 "\n" \ 29 "\n" \
30 "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \ 30 "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
31 " + '://' +\n" \ 31 " + ':/" "/' +\n" \
32 " window.location.host + '/chat';\n" \ 32 " window.location.host + '/chat';\n" \
33 "let socket = null;\n" \ 33 "let socket = null;\n" \
34 "\n" \ 34 "\n" \
@@ -38,7 +38,7 @@
38 " document.write('The websocket connection has been " \ 38 " document.write('The websocket connection has been " \
39 "established.<br>');\n" \ 39 "established.<br>');\n" \
40 "\n" \ 40 "\n" \
41 " // Send some text\n" \ 41 " /" "/ Send some text\n" \
42 " socket.send('Hello from JavaScript!');\n" \ 42 " socket.send('Hello from JavaScript!');\n" \
43 " }\n" \ 43 " }\n" \
44 "\n" \ 44 "\n" \
diff --git a/src/microhttpd_ws/test_websocket_browser.c b/src/microhttpd_ws/test_websocket_browser.c
index 96e7755f..557ccdde 100644
--- a/src/microhttpd_ws/test_websocket_browser.c
+++ b/src/microhttpd_ws/test_websocket_browser.c
@@ -55,7 +55,7 @@
55 "let charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!@%&/\\\\';\n" \ 55 "let charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!@%&/\\\\';\n" \
56 "let step_to_bytes = [ 0, 1, 2, 3, 122, 123, 124, 125, 126, 127, 128, 32766, 32767, 32768, 65534, 65535, 65536, 65537, 1048576, 10485760 ];\n" \ 56 "let step_to_bytes = [ 0, 1, 2, 3, 122, 123, 124, 125, 126, 127, 128, 32766, 32767, 32768, 65534, 65535, 65536, 65537, 1048576, 10485760 ];\n" \
57 "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \ 57 "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \
58 " + '://' +\n" \ 58 " + ':/" "/' +\n" \
59 " window.location.host + '/websocket';\n" \ 59 " window.location.host + '/websocket';\n" \
60 "let socket = null;\n" \ 60 "let socket = null;\n" \
61 "\n" \ 61 "\n" \