Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

Commit d12b5dc

Browse files
author
Pasu Chan
committed
Support binary HTTP(s) response bodies
1 parent ace8389 commit d12b5dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/modules/DifferentContent.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ httpse_check_different_content(const HttpseTData *tdata)
6262

6363

6464
/* Remark: if strcmp == 0, no diff content */
65-
if(0 == strcmp(tdata->rs->userp->c_str, tdata->rp->userp->c_str))
65+
if(tdata->rs->userp->size == tdata->rp->userp->size)
6666
{
67-
return HTTPSE_OK;
67+
if(0 == memcmp(tdata->rs->userp->data, tdata->rp->userp->data,
68+
tdata->rs->userp->size))
69+
{
70+
return HTTPSE_OK;
71+
}
6872
}
6973

7074

0 commit comments

Comments
 (0)