Task #2914
Updated by bmbouter about 7 years ago
The ContentView needs to be updated to detect if XSEND can/should be used to stream bits. The pulp2 code[0] to add the <code>X-SENDFILE</code> header should also be ported. It should be noted that nginx does not use the <code>X-SENDFILE</code> header, but rather the <code>X-Accel-Redirect</code> header. It would be good to support either of these servers. Prehaps a default property named <code>webserver</code> in settings.py and a user config in server.yaml that defaults to None, and can be set to None, apache, or nginx [0] https://github.com/pulp/pulp/blob/96db0a2eefe12683cd439d9a00e57a4da0876dbc/server/pulp/server/content/web/views.py#L74