fix linger support in esl client lib

This commit is contained in:
Anthony Minessale 2011-02-25 16:13:16 -06:00
parent 4020a202d7
commit 0444626b72
1 changed files with 4 additions and 1 deletions

View File

@ -1066,7 +1066,10 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
hval = esl_event_get_header(revent, "content-type");
if (!esl_safe_strcasecmp(hval, "text/disconnect-notice") && revent->body) {
goto fail;
const char *dval = esl_event_get_header(revent, "content-disposition");
if (esl_strlen_zero(dval) || strcasecmp(dval, "linger")) {
goto fail;
}
}
if (revent->body) {