patx/mrhttp-asgi

Update mrhttpparser.c

Commit f5ed429 · Mark Reed · 2024-03-17T11:34:23-07:00

Changeset
f5ed429fafdf142426782f7fc34f05b9a910417b
Parents
e0af965c74eabb5c8936f37802f63977dccbe907

View source at this commit

Comments

No comments yet.

Log in to comment

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;
     }