diff --git a/be/src/http/http_channel.cpp b/be/src/http/http_channel.cpp index d554ba367a92e79..598330ff7cbcfbe 100644 --- a/be/src/http/http_channel.cpp +++ b/be/src/http/http_channel.cpp @@ -123,11 +123,7 @@ void HttpChannel::send_files(HttpRequest* request, const std::string& root_dir, VLOG_DEBUG << "http channel send file " << file_path << ", size: " << file_size; evbuffer_add_printf(evb.get(), "File-Name: %s\r\n", file.c_str()); -#ifdef __APPLE__ - evbuffer_add_printf(evb.get(), "Content-Length: %lld\r\n", file_size); -#else - evbuffer_add_printf(evb.get(), "Content-Length: %ld\r\n", file_size); -#endif + evbuffer_add_printf(evb.get(), "Content-Length: %" PRIi64 "\r\n", file_size); evbuffer_add_printf(evb.get(), "\r\n"); if (file_size > 0) {