deptofdefense / iceberg

File server using client certificate authentication and policy-based access control
MIT License
6 stars 6 forks source link

Support HTTP Range Requests #12

Closed pjdufour-dds closed 3 years ago

pjdufour-dds commented 3 years ago

Closes #11

The spf13/afero file system already supports HTTP range requests. However, the HTTP would previously always add the "Content-Disposition" header on every file. This header can now be turned off with the ?download=false or ?download=0 query string. The new prefix and suffix functions should allow a server administrator to show conditional "view" buttons when media should be shown in the browser.