numtide / nar-serve

Unpack and serve NAR file content on the fly
Apache License 2.0
32 stars 8 forks source link

Expose the executable bit into a HTTP header #2

Closed zimbatm closed 8 months ago

zimbatm commented 5 years ago

The NAR archive doesn't store any file attributes except the file type, and whenever the file is an executable.

It would be nice to expose whenever a file is executable in a HTTP header.

Eg:

X-Nar-Executable: true

?

stv0g commented 8 months ago

I've implemented a header named NAR-Executable.

I decided against the X- prefix as its discouraged since RFC6648.