Commit 396c58a
committed
fix: follow asgi spec and also check if text or bytes are None (Modal fix)
We assumed when the text or bytes were None that it was a missing value,
but on Modal we do see a message like that, e.g.:
{'type': 'websocket.receive', 'bytes': b'...', 'text': None}}1 parent 87186c5 commit 396c58a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments