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

Commit

Permalink
Support binary HTTP(s) response bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasu Chan committed Mar 24, 2017
1 parent ace8389 commit d12b5dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/modules/DifferentContent.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ httpse_check_different_content(const HttpseTData *tdata)


/* Remark: if strcmp == 0, no diff content */
if(0 == strcmp(tdata->rs->userp->c_str, tdata->rp->userp->c_str))
if(tdata->rs->userp->size == tdata->rp->userp->size)
{
return HTTPSE_OK;
if(0 == memcmp(tdata->rs->userp->data, tdata->rp->userp->data,
tdata->rs->userp->size))
{
return HTTPSE_OK;
}
}


Expand Down

0 comments on commit d12b5dc

Please sign in to comment.