void HTTPRequest::AppendContentLengthHeader(UInt32 length_32bit) { char* contentLength = NEW char[256]; qtss_sprintf(contentLength, "%lu", length_32bit); StrPtrLen contentLengthPtr(contentLength); AppendResponseHeader(httpContentLengthHeader, &contentLengthPtr); }
void HTTPRequest::AppendContentLengthHeader(UInt64 length_64bit) { char* contentLength = NEW char[256]; qtss_sprintf(contentLength, "%"_64BITARG_"d", length_64bit); StrPtrLen contentLengthPtr(contentLength); AppendResponseHeader(httpContentLengthHeader, &contentLengthPtr); }
void HTTPRequest::AppendContentLengthHeader(UInt32 length_32bit) { //char* contentLength = NEW char[256]; char contentLength[256] = { 0 }; qtss_sprintf(contentLength, "%"_U32BITARG_"", length_32bit); StrPtrLen contentLengthPtr(contentLength); AppendResponseHeader(httpContentLengthHeader, &contentLengthPtr); }