# HG changeset patch # User Tom Gottfried # Date 1581678998 -3600 # Node ID 4fda1249f6e8abf335b16363ea785ff9fe825396 # Parent 9bd6a0ca63eace4a38b778db54e05a20945bb9ec# Parent 6129f7bb5b772fea2b8b82c3f921dfe6cf394524 Merged diff -r 9bd6a0ca63ea -r 4fda1249f6e8 pkg/geoserver/boot.go --- a/pkg/geoserver/boot.go Fri Feb 14 12:14:36 2020 +0100 +++ b/pkg/geoserver/boot.go Fri Feb 14 12:16:38 2020 +0100 @@ -500,13 +500,13 @@ zip := isZip(binary) if !zip { // We only support templating for plain XML styles. - data := string(binary) if processor := FindStylePreprocessor(entry.Name); processor != nil { - if data, err = processor(data); err != nil { + data, err := processor(string(binary)) + if err != nil { return err } + binary = []byte(data) } - binary = []byte(data) } var (