comparison pkg/geoserver/boot.go @ 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 be3815792bc4
children c64dba002726
comparison
equal deleted inserted replaced
4931:e41d42be0e13 4932:2b46e7c51511
498 } 498 }
499 499
500 zip := isZip(binary) 500 zip := isZip(binary)
501 501
502 if !zip { // We only support templating for plain XML styles. 502 if !zip { // We only support templating for plain XML styles.
503 data := string(binary)
504 if processor := FindStylePreprocessor(entry.Name); processor != nil { 503 if processor := FindStylePreprocessor(entry.Name); processor != nil {
505 if data, err = processor(data); err != nil { 504 data, err := processor(string(binary))
505 if err != nil {
506 return err 506 return err
507 } 507 }
508 } 508 binary = []byte(data)
509 binary = []byte(data) 509 }
510 } 510 }
511 511
512 var ( 512 var (
513 geoURL = config.GeoServerURL() 513 geoURL = config.GeoServerURL()
514 user = config.GeoServerUser() 514 user = config.GeoServerUser()