diff options
author | liris <liris.pp@gmail.com> | 2014-06-06 10:33:10 +0900 |
---|---|---|
committer | liris <liris.pp@gmail.com> | 2014-06-06 10:33:10 +0900 |
commit | f57811d0428e5c1d93d51c9055d140662b6086c7 (patch) | |
tree | 6c58f5caf803bcb521cd3dda28711aa5436c129a | |
parent | 22f92961d45862bbb279ba792e62b1b63c3f0ccc (diff) | |
parent | bf5edde47518c30156c9f46d82a2effde25cedb2 (diff) | |
download | websocket-client-f57811d0428e5c1d93d51c9055d140662b6086c7.tar.gz |
Merge pull request #87 from pedrudehuere/master
Update _core.py
-rw-r--r-- | websocket/_core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/websocket/_core.py b/websocket/_core.py index 87bca4b..189e052 100644 --- a/websocket/_core.py +++ b/websocket/_core.py @@ -723,13 +723,13 @@ class WebSocket(object): return ABNF(fin, rsv1, rsv2, rsv3, opcode, has_mask, payload) - def send_close(self, status=STATUS_NORMAL, reason=""): + def send_close(self, status=STATUS_NORMAL, reason=b""): """ send close data to the server. status: status code to send. see STATUS_XXX. - reason: the reason to close. This must be string. + reason: the reason to close. This must be string or bytes. """ if status < 0 or status >= ABNF.LENGTH_16: raise ValueError("code is invalid range") |