Skip to content

Commit 0cc7d4a

Browse files
committed
Allow empty HTTP headers
1 parent 307389b commit 0cc7d4a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/net/http.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,12 +745,11 @@ static int XHTTP_ParseHeaders(xhttp_t *pHttp)
745745

746746
while (pData[nPosit] == ' ' || pData[nPosit] == ':') nPosit++;
747747
char *pValue = xstracut(pData, nPosit, strlen(pData) - nPosit);
748-
748+
749749
if (pValue == NULL)
750750
{
751-
nStatus = XSTDERR;
752751
free(pHeaderStr);
753-
break;
752+
continue;
754753
}
755754

756755
if (pValue[0] == XSTR_SPACE_CHAR) xstrnrm(pValue, 0, 1);

src/xver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define XUTILS_VERSION_MAX 2
1414
#define XUTILS_VERSION_MIN 6
15-
#define XUTILS_BUILD_NUMBER 31
15+
#define XUTILS_BUILD_NUMBER 32
1616

1717
#ifdef __cplusplus
1818
extern "C" {

0 commit comments

Comments
 (0)