Commit a278722
authored
Fix: Ensure ASGI compliance in transport.py for POST message handling (pathintegral-institute#162)
- Modified mcpm.router.transport.py:
- Refactored handle_post_message to correctly send a 202 Accepted response as a raw ASGI application before proceeding with internal message forwarding. It now implicitly returns None as expected.
(Note: Complementary ASGI fixes for mcpm.router.router.py's handle_sse were already present in the base branch 076a6bf)1 parent eb3feca commit a278722
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| |||
0 commit comments