I am sending a file using X-Accel-Redirect and including Content-Range but on django with fcgi, but nginx ignores my headers and simply sends the whole file. resp = HttpResponse() resp.status_code = 206 resp['X-Accel-Buffering'] = 'no' resp['X-Accel-Redirect'] = ''.join(['/stream_d/', str(pk), '/',files[1]]) resp['Accept-Ranges'] = 'bytes' resp['Content-Length'] = length + 1 rby insightering - How to...
![]() |
![]() |
![]() |
![]() |
|