Skip to content

Commit

Permalink
temp work renaming functions
Browse files Browse the repository at this point in the history
  • Loading branch information
muneebahmed10 committed Dec 23, 2021
1 parent c8c70f8 commit 43514f8
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 114 deletions.
7 changes: 4 additions & 3 deletions source/core_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int findHeaderFieldParserCallback( llhttp_t * pHttpParser,
* buffer.
* @param[in] valueLen The length of the header value.
*
* @return Returns #HTTP_PARSER_STOP_PARSING, if the header field/value pair are
* @return Returns #LLHTTP_STOP_PARSING, if the header field/value pair are
* found, otherwise #LLHTTP_CONTINUE_PARSING is returned.
*/
static int findHeaderValueParserCallback( llhttp_t * pHttpParser,
Expand Down Expand Up @@ -2321,7 +2321,7 @@ static int findHeaderValueParserCallback( llhttp_t * pHttpParser,

/* As we have found the value associated with the header, we don't need
* to parse the response any further. */
retCode = HTTP_PARSER_STOP_PARSING;
retCode = LLHTTP_STOP_PARSING;
}
else
{
Expand Down Expand Up @@ -2354,7 +2354,8 @@ static int findHeaderOnHeaderCompleteCallback( llhttp_t * pHttpParser )
pContext->pField ) );

/* No further parsing is required; thus, indicate the parser to stop parsing. */
return HTTP_PARSER_STOP_PARSING;
//return HTTP_PARSER_STOP_PARSING;
return -1;
}

/*-----------------------------------------------------------*/
Expand Down
1 change: 0 additions & 1 deletion source/include/core_http_client_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
* continuation of HTTP response parsing. Equal to HPE_OK.
*/
#define LLHTTP_CONTINUE_PARSING 0
#define HTTP_PARSER_CONTINUE_PARSING LLHTTP_CONTINUE_PARSING

/**
* @brief Return value for llhttp registered callback to signal halting
Expand Down
Loading

0 comments on commit 43514f8

Please sign in to comment.