File tree 2 files changed +2
-16
lines changed
2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -423,8 +423,6 @@ sys/make-scheme [
423
423
ctx/out/header/Upgrade: "websocket"
424
424
ctx/out/header/Connection: "Upgrade"
425
425
ctx/out/header/Sec-WebSocket-Accept: enbase checksum join key "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" 'sha1 64
426
- ;? ctx/out/header
427
- ;ctx/out/content: ""
428
426
]
429
427
]
430
428
]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Rebol [
16
16
secure [%../modules/ allow]
17
17
do %../modules/httpd.reb
18
18
19
- system/options/log/httpd: 4 ; for verbose output
19
+ system/options/log/httpd: 1 ; for verbose output
20
20
system/options/quiet: false
21
21
22
22
; make sure that there is the directory for logs
@@ -32,18 +32,6 @@ humans.txt: {
32
32
\____________/~~~> http://github.com/oldes/
33
33
}
34
34
35
- WS-handshake : func [ ctx /local key] [
36
- if all [
37
- "websocket" = select ctx/inp/header 'Upgrade
38
- key: select ctx/inp/header 'Sec-WebSocket-Key
39
- ][
40
- ctx/out/status: 101
41
- ctx/out/header/Upgrade: "websocket"
42
- ctx/out/header/Connection: "Upgrade"
43
- ctx/out/header/Sec-WebSocket-Accept: enbase checksum join key "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" 'sha1 64
44
- ]
45
- ]
46
-
47
35
http-server/config/actor 8081 [
48
36
;- Main server configuration
49
37
@@ -131,7 +119,7 @@ http-server/config/actor 8081 [
131
119
%/echo [
132
120
;@@ Consider checking the ctx/out/header/Origin value
133
121
;@@ before accepting websocket connection upgrade!
134
- WS-handshake ctx
122
+ system /schemes/httpd/actor/ WS-handshake ctx
135
123
]
136
124
]
137
125
]
You can’t perform that action at this time.
0 commit comments