mirror of https://github.com/bjdgyc/anylink.git
优化代码
This commit is contained in:
parent
f325970089
commit
cde46c5765
|
@ -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>
|
||||
`
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue