mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix bug
This commit is contained in:
parent
7dcfd6b029
commit
a2d9f0a9ad
9 changed files with 13 additions and 6 deletions
|
@ -457,7 +457,7 @@ srs_error_t SrsHttpFileServer::serve_file(ISrsHttpResponseWriter* w, ISrsHttpMes
|
|||
// write body.
|
||||
int64_t left = length;
|
||||
if ((err = copy(w, fs, r, (int)left)) != srs_success) {
|
||||
return srs_error_wrap(err, "copy file=%s size=%d", fullpath.c_str(), left);
|
||||
return srs_error_wrap(err, "copy file=%s size=%d", fullpath.c_str(), (int)left);
|
||||
}
|
||||
|
||||
if ((err = w->final_request()) != srs_success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue