Skip to content

Commit e593519

Browse files
authored
Accept 0 as a callback id (miguelgrinberg#1329)
1 parent 4201981 commit e593519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socketio/packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,6 @@ def _to_dict(self):
185185
'data': self.data,
186186
'nsp': self.namespace,
187187
}
188-
if self.id:
188+
if self.id is not None:
189189
d['id'] = self.id
190190
return d

0 commit comments

Comments
 (0)