Project

General

Profile

Actions

Bug #2733

closed

X-LIGHTTPD-send-file return 0 bytes

Added by roytam1 almost 9 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

The following test PHP can return itself in 1.4.39, but in git HEAD it returns 0 bytes.

Test PHP:

<?php
  $xsendfile = 'X-LIGHTTPD-send-file'; // use x-sendfile header?
                      // 'X-sendfile': for apache mod_xsendfile/lighttpd-1.5
                      // 'X-LIGHTTPD-send-file': for lighttpd-1.4.20+
                      // 'X-Accel-Redirect': for nginx
  $xendfile_prefix = dirname(__FILE__).'/'; // path prefix for x-sendfile

  $fname = 'xsend.php';
  $fname_out = 'xsend.txt';
  $upfile_type = 'text/plain';

        header("Content-Disposition: attachment; filename=$fname_out");
        header("Content-Type: $upfile_type; name=$fname_out");
            header($xsendfile.': '.$xendfile_prefix.$fname);

#1

Updated by gstrauss almost 9 years ago

  • Status changed from New to Patch Pending
#3

Updated by gstrauss almost 9 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
#6

Updated by gstrauss almost 9 years ago

  • Status changed from Fixed to Reopened
#12

Updated by gstrauss almost 9 years ago

  • Status changed from Reopened to Fixed
Actions

Also available in: Atom