1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1638, #307, use short-term http connection for rtc to use new cid.

This commit is contained in:
winlin 2020-03-17 12:10:42 +08:00
parent 6118ca382a
commit 29b9203428
2 changed files with 7 additions and 1 deletions

View file

@ -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)) {