Compare commits

..

No commits in common. "6623db95747164710412a92e7102d1999564f95c" and "452a1092044164eabe2294fd9630c34f76a530e4" have entirely different histories.

2 changed files with 0 additions and 8 deletions

View File

@ -55,8 +55,3 @@ func New(filename string) (config Config, err error) {
return
}
func (config *Config) ParseApplicationConfig(v any) {
yStr, _ := yaml.Marshal(config.Application)
yaml.Unmarshal(yStr, &v)
}

3
pkg.go
View File

@ -300,9 +300,6 @@ func (service *Service) StaticHandler(w http.ResponseWriter, r *http.Request, se
rxp := regexp.MustCompile("^/(css|images|js|fonts)/v[0-9]+/(.*)$")
if comp := rxp.FindStringSubmatch(r.URL.Path); comp != nil {
w.Header().Add("Pragma", "public")
w.Header().Add("Cache-Control", "max-age=604800")
r.URL.Path = fmt.Sprintf("/%s/%s", comp[1], comp[2])
p := fmt.Sprintf(service.staticDirectory+"/%s/%s", comp[1], comp[2])
_, err = os.Stat(p)