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

refine code.

This commit is contained in:
winlin 2015-12-31 15:57:16 +08:00
parent eca46c03d2
commit 26211abf2e
7 changed files with 35 additions and 12 deletions

View file

@ -1488,7 +1488,7 @@ int SrsConfig::parse_argv(int& i, char** argv)
void SrsConfig::print_help(char** argv)
{
printf(
RTMP_SIG_SRS_NAME" "RTMP_SIG_SRS_VERSION" "RTMP_SIG_SRS_COPYRIGHT"\n"
RTMP_SIG_SRS_SERVER" "RTMP_SIG_SRS_COPYRIGHT"\n"
"License: "RTMP_SIG_SRS_LICENSE"\n"
"Primary: "RTMP_SIG_SRS_PRIMARY"\n"
"Authors: "RTMP_SIG_SRS_AUTHROS"\n"

View file

@ -279,7 +279,7 @@ int SrsHttpResponseWriter::send_header(char* data, int size)
// set server if not set.
if (hdr->get("Server").empty()) {
hdr->set("Server", RTMP_SIG_SRS_KEY"/"RTMP_SIG_SRS_VERSION);
hdr->set("Server", RTMP_SIG_SRS_SERVER);
}
// chunked encoding