patx/mrhttp-asgi
Update mrhttpparser.c
Commit f5ed429 · Mark Reed · 2024-03-17T11:34:23-07:00
Comments
No comments yet.
Diff
diff --git a/src/mrhttp/internals/mrhttpparser.c b/src/mrhttp/internals/mrhttpparser.c
index 030815c..faf888d 100644
--- a/src/mrhttp/internals/mrhttpparser.c
+++ b/src/mrhttp/internals/mrhttpparser.c
@@ -192,7 +192,7 @@ static const char *parse_request(const char *buf, const char *buf_end, const cha
case CHAR8_TO_LONG('H', 'T', 'T', 'P','/','1','.','1'):
*minor_version = 1; buf += 8; break;
default:
- *ret = -2;
+ *ret = -2; // TODO should be -1??
return NULL;
}