~ubuntu-branches/ubuntu/natty/znc/natty-backports

« back to all changes in this revision

Viewing changes to HTTPSock.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-05-23 16:17:47 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090523161747-dtgbsub23o1sl7ss
Tags: 0.070-1
* New upstream release.
  - Add new pkgconfig files to znc-dev.
* Fix typo in get-orig-source target.
* Merge 0.058-2~bpo40+1 and 0.058-2~bpo40+2 changelog.
* Add recommends on the new source package znc-extra.
* Add my own copyright for the Debian packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        if (bNotModified) {
174
174
                PrintHeader(0, sContentType, 304, "Not Modified");
175
175
        } else {
176
 
                unsigned long long iSize = File.GetSize();
 
176
                off_t iSize = File.GetSize();
177
177
 
178
178
                // Don't try to send files over 16 MiB, because it might block
179
179
                // the whole process and use huge amounts of memory.
184
184
                }
185
185
 
186
186
                char szBuf[4096];
187
 
                unsigned long long iLen = 0;
 
187
                off_t iLen = 0;
188
188
                int i = 0;
189
189
 
190
190
                PrintHeader(iSize, sContentType);
372
372
        return m_bSentHeader;
373
373
}
374
374
 
375
 
bool CHTTPSock::PrintHeader(unsigned long uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) {
 
375
bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) {
376
376
        if (SentHeader()) {
377
377
                DEBUG("- Header already sent!");
378
378
                return false;