mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use kernel utility int2str and float2str
This commit is contained in:
parent
6efd2dd27e
commit
9ead08725d
14 changed files with 104 additions and 75 deletions
|
|
@ -174,9 +174,7 @@ int64_t SrsHttpHeader::content_length()
|
|||
|
||||
void SrsHttpHeader::set_content_length(int64_t size)
|
||||
{
|
||||
char buf[64];
|
||||
snprintf(buf, sizeof(buf), "%"PRId64, size);
|
||||
set("Content-Length", buf);
|
||||
set("Content-Length", srs_int2str(size));
|
||||
}
|
||||
|
||||
string SrsHttpHeader::content_type()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue