Commit 90f5e91
晓明 王
normalize string ID to int in server messages for compatibility
Some non-standard SSE servers may return numeric IDs as strings,
even when the original request used an integer. This change ensures
that message.root.id is always an integer to maintain consistency
and avoid type issues in downstream processing.1 parent 05b7156 commit 90f5e91
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
| |||
0 commit comments