diff --git a/HTTPSock.cpp b/HTTPSock.cpp index a74f7417..6bdac592 100644 --- a/HTTPSock.cpp +++ b/HTTPSock.cpp @@ -372,7 +372,7 @@ bool CHTTPSock::SentHeader() const { return m_bSentHeader; } -bool CHTTPSock::PrintHeader(unsigned long uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) { +bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) { if (SentHeader()) { DEBUG("- Header already sent!"); return false; diff --git a/HTTPSock.h b/HTTPSock.h index b3554142..d89a9814 100644 --- a/HTTPSock.h +++ b/HTTPSock.h @@ -37,7 +37,7 @@ public: void CheckPost(); bool SentHeader() const; - bool PrintHeader(unsigned long uContentLength, const CString& sContentType = "", unsigned int uStatusId = 200, const CString& sStatusMsg = "OK"); + bool PrintHeader(off_t uContentLength, const CString& sContentType = "", unsigned int uStatusId = 200, const CString& sStatusMsg = "OK"); void AddHeader(const CString& sName, const CString& sValue); void SetContentType(const CString& sContentType);