Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13414

download/file.php sends Content-Length header even when issuing 304 Not Modified

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.12
    • Fix Version/s: 3.0.14-RC1, 3.1.4-RC1
    • Component/s: Other, Viewing posts
    • Labels:
      None
    • Environment:
      PHP 5.5.18, nginx 1.7.6/1.7.7

      Description

      phpbb 3.0.12

      download/file.php returns Content-Length header (with non-zero value) even if after it it returns 304 Not Modified. Which resulting to connection stuck until keepalive timeouts when server is nginx+php-fpm with keepalive_timeout > 0

      There should not be Content-Length header at all if 304 is returned.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              Semik Semen Panevin [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: