Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13414

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.14-RC1, 3.1.4-RC1
    • 3.0.12
    • Other, Viewing posts
    • None
    • PHP 5.5.18, nginx 1.7.6/1.7.7

      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.

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

              Created:
              Updated:
              Resolved: