FS-9817 #resolve fix regression from 828d6eaf01
This commit is contained in:
parent
dc63b63ec0
commit
6528ae00b5
|
@ -1445,7 +1445,7 @@ static uint8_t *http_stream_read(switch_stream_handle_t *handle, int *len)
|
|||
}
|
||||
|
||||
*len = (int)(r->content_length - (r->bytes_read - r->bytes_header));
|
||||
*len = *len > sizeof(wsh->buffer) ? sizeof(wsh->buffer) : *len;
|
||||
*len = *len > sizeof(wsh->buffer) ? wsh->buflen : *len;
|
||||
|
||||
if ((*len = (int)ws_raw_read(wsh, wsh->buffer, *len, wsh->block)) < 0) {
|
||||
*len = 0;
|
||||
|
|
Loading…
Reference in New Issue