mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
This commit is contained in:
parent
6118ca382a
commit
29b9203428
2 changed files with 7 additions and 1 deletions
|
@ -907,7 +907,9 @@ srs_error_t SrsHttpResponseWriter::send_header(char* data, int size)
|
|||
}
|
||||
|
||||
// keep alive to make vlc happy.
|
||||
hdr->set("Connection", "Keep-Alive");
|
||||
if (hdr->get("Connection").empty()) {
|
||||
hdr->set("Connection", "Keep-Alive");
|
||||
}
|
||||
|
||||
// Filter the header before writing it.
|
||||
if (hf && ((err = hf->filter(hdr)) != srs_success)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue