static-file-server icon indicating copy to clipboard operation
static-file-server copied to clipboard

Access Key

Open DomesticWarlord opened this issue 2 years ago • 3 comments

Is it possible to have multiple access keys set? I attempted to set them using commas, but it was just treated as a single key. For example: access-key=12345,678910

I would expect to be able to access the file with http://my.domance/Test.xml?key=12345 as well as http://my.domance/Test.xml?key=678910. However, access was only granted when using http://my.domance/Test.xml?key=12345,678910

DomesticWarlord avatar Feb 08 '23 03:02 DomesticWarlord

At the moment this is not an option. This is a feature that could be added. I would be hesitant to assign it using a delimiter that is an allowed URL character. Perhaps a character such as "&" so there is no concern about breaking any backward-compatibility (though it is unlikely anyone is using a comma, I would still consider it a breaking change)?

halverneus avatar Feb 08 '23 17:02 halverneus

& would work fine for me.

DomesticWarlord avatar Feb 08 '23 18:02 DomesticWarlord

I'll add it to my queue. This has been a busy month, but I'll probably get to it soon.

halverneus avatar Feb 08 '23 18:02 halverneus