mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-06 23:03:22 +08:00
优化代码
This commit is contained in:
@@ -202,14 +202,11 @@ func SetPostAuthXml(g *dbdata.Group, w http.ResponseWriter) error {
|
||||
return err
|
||||
}
|
||||
var result bytes.Buffer
|
||||
_ = tmpl.Execute(&result, g)
|
||||
err = tmpl.Execute(&result, g)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if result.String() != "" {
|
||||
HttpSetHeader(w, "X-CSTP-Post-Auth-XML", result.String())
|
||||
base.Info(result.String())
|
||||
}
|
||||
HttpSetHeader(w, "X-CSTP-Post-Auth-XML", result.String())
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -229,4 +226,4 @@ var ds_domains_xml = `
|
||||
</opaque>
|
||||
</config>
|
||||
</config-auth>
|
||||
`
|
||||
`
|
||||
|
Reference in New Issue
Block a user