X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=thumb.php;h=12173c55ddae9f31d28f05d08d52c9df2b89ee2c;hb=795c8958840771e3a8603c417af3f0c464cf3cbd;hp=3b7ff43612bee0a80ca5c1055c242b38f9c795a0;hpb=9c0a43600e9eff4a1a8e24ef0604ab6c0d69c0e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/thumb.php b/thumb.php index 3b7ff43612..12173c55dd 100644 --- a/thumb.php +++ b/thumb.php @@ -213,6 +213,7 @@ function wfStreamThumb( array $params ) { if ( count( $varyHeader ) ) { $response->header( 'Vary: ' . implode( ', ', $varyHeader ) ); } + $response->header( 'Content-Length: 0' ); return; } @@ -309,7 +310,6 @@ function wfStreamThumb( array $params ) { wfThumbError( 500, 'Could not stream the file' ); } else { RequestContext::getMain()->getStats()->timing( 'media.thumbnail.stream', $streamtime ); - wfDebugLog( 'thumbnailaccess', time() . ' ' . $thumbPath . ' ' . ob_get_length() . ' Streamed ' ); } return; }