diff options
author | Siad Ardroumli <[email protected]> | 2020-08-02 22:55:56 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-02 22:55:56 +0200 |
commit | 8d67df09bcf5a9cac1bc2f21045c8620f030554a (patch) | |
tree | 050aab557fea4d295a2cdd14ef44fbe5741914b9 /service | |
parent | cab2b5f909e3322ae7bdbe7ab9a356e80b6ecc2c (diff) |
Update config.go
Diffstat (limited to 'service')
-rw-r--r-- | service/static/config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/service/static/config.go b/service/static/config.go index eda459a7..3ca20a83 100644 --- a/service/static/config.go +++ b/service/static/config.go @@ -20,6 +20,12 @@ type Config struct { // Always specifies list of extensions which must always be served by static // service, even if file not found. Always []string + + // Request headers to add to every static. + Request map[string]string + + // Response headers to add to every static. + Response map[string]string } // Hydrate must populate Config values using given Config source. Must return error if Config is not valid. |