From ef777c27059ec2d9e808f7e1c51b665cfa72623f Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 25 Sep 2020 13:03:36 -0400 Subject: [PATCH] refactor: set flags to bool --- runtime/include/http_request.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/include/http_request.h b/runtime/include/http_request.h index ad38c15..2312bdc 100644 --- a/runtime/include/http_request.h +++ b/runtime/include/http_request.h @@ -1,5 +1,6 @@ #pragma once +#include #include "http.h" /* all in-memory ptrs.. don't mess around with that! */ @@ -16,11 +17,11 @@ struct http_request { int body_read_length; /* How far we've read */ /* additional members for http-parser */ - int last_was_value; /* http-parser flag used to help the http-parser callbacks differentiate between header + bool last_was_value; /* http-parser flag used to help the http-parser callbacks differentiate between header fields and values to know when to allocate a new header */ - int header_end; /* boolean flag set when header processing is complete */ - int message_begin; /* boolean flag set when body processing begins */ - int message_end; /* boolean flag set when body processing is complete */ + bool header_end; /* boolean flag set when header processing is complete */ + bool message_begin; /* boolean flag set when body processing begins */ + bool message_end; /* boolean flag set when body processing is complete */ }; /***************************************************