Branch: Tag:

2008-12-09

2008-12-09 12:44:38 by Stefan Wallström <stewa@roxen.com>

spello

Rev: server/protocols/http.pike:1.571

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright ¬© 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.570 2008/12/09 11:41:23 stewa Exp $"; + constant cvs_version = "$Id: http.pike,v 1.571 2008/12/09 12:44:38 stewa Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1835:    part_heads["Content-Range"] =    sprintf("bytes %d-%d/%d", @range, file->len);    //res[j++] = Roxen.make_http_headers(part_heads); -  // It seems like Acrobat/IE kan freeze if the content-range header precedes the content-type header +  // It seems like Acrobat/IE can freeze if the content-range header precedes the content-type header    res[j++] = "Content-Type: "+part_heads["Content-Type"] + "\r\n" + "Content-Range: "+part_heads["Content-Range"] + "\r\n\r\n";    res[j++] = file->data[range[0]..range[1]];    }