-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
675f518
commit 028d821
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,23 @@ type Config struct { | |
// File holds the path to an actual favicon that will be cached | ||
// | ||
// Optional. Default: "" | ||
File string | ||
File string `json:"file"` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ReneWerner87
Author
Member
|
||
|
||
// URL for favicon handler | ||
// | ||
// Optional. Default: "/favicon.ico" | ||
URL string | ||
URL string `json:"url"` | ||
|
||
// FileSystem is an optional alternate filesystem to search for the favicon in. | ||
// An example of this could be an embedded or network filesystem | ||
// | ||
// Optional. Default: nil | ||
FileSystem http.FileSystem | ||
FileSystem http.FileSystem `json:"-"` | ||
|
||
// CacheControl defines how the Cache-Control header in the response should be set | ||
// | ||
// Optional. Default: "public, max-age=31536000" | ||
CacheControl string | ||
CacheControl string `json:"cache_control"` | ||
} | ||
|
||
// ConfigDefault is the default config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ReneWerner87 what was the problem here?