Merge "filebackend: Use HTTPFileStreamer::send404Message() in caller instead"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 13 Sep 2019 02:33:15 +0000 (02:33 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 13 Sep 2019 02:33:15 +0000 (02:33 +0000)
1  2 
includes/StreamFile.php

diff --combined includes/StreamFile.php
   */
  class StreamFile {
        // Do not send any HTTP headers unless requested by caller (e.g. body only)
+       /** @deprecated since 1.34 */
        const STREAM_HEADLESS = HTTPFileStreamer::STREAM_HEADLESS;
        // Do not try to tear down any PHP output buffers
+       /** @deprecated since 1.34 */
        const STREAM_ALLOW_OB = HTTPFileStreamer::STREAM_ALLOW_OB;
  
        /**
                                case 'png':
                                        return 'image/png';
                                case 'jpg':
 -                                      return 'image/jpeg';
                                case 'jpeg':
                                        return 'image/jpeg';
                        }