Mercurial > gemma
changeset 4932:2b46e7c51511 fairway-marks-import
Bring back 5017:6129f7bb5b77 as it does not breaks style upload.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 15 Feb 2020 09:12:10 +0100 |
parents | e41d42be0e13 |
children | 45ef039cf4a8 |
files | pkg/geoserver/boot.go |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/geoserver/boot.go Fri Feb 14 19:34:08 2020 +0100 +++ b/pkg/geoserver/boot.go Sat Feb 15 09:12:10 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 (