Mercurial > prosody-modules
comparison mod_websocket/mod_websocket.lua @ 1272:717a08403b26
mod_websocket: Fix typo "Cosed" -> "Closed"
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 11 Jan 2014 00:20:59 +0100 |
parents | bbe278a56b0a |
children | 853a382c9bd6 |
comparison
equal
deleted
inserted
replaced
1271:e927d95512e8 | 1272:717a08403b26 |
---|---|
175 local status_code = s_byte(frame.data, 1) * 256 + s_byte(frame.data, 2) | 175 local status_code = s_byte(frame.data, 1) * 256 + s_byte(frame.data, 2) |
176 if status_code < 1000 then | 176 if status_code < 1000 then |
177 websocket_close(1002, "Closed with invalid status code"); | 177 websocket_close(1002, "Closed with invalid status code"); |
178 return false; | 178 return false; |
179 elseif ((status_code > 1003 and status_code < 1007) or status_code > 1011) and status_code < 3000 then | 179 elseif ((status_code > 1003 and status_code < 1007) or status_code > 1011) and status_code < 3000 then |
180 websocket_close(1002, "Cosed with reserved status code"); | 180 websocket_close(1002, "Closed with reserved status code"); |
181 return false; | 181 return false; |
182 end | 182 end |
183 end | 183 end |
184 end | 184 end |
185 | 185 |