mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:10:55 +00:00
fix gosimple
This commit is contained in:
parent
ee1d8bc30e
commit
e32a18203b
@ -343,9 +343,8 @@ func (output *BeegoOutput) IsServerError() bool {
|
||||
}
|
||||
|
||||
func stringsToJSON(str string) string {
|
||||
rs := []rune(str)
|
||||
var jsons bytes.Buffer
|
||||
for _, r := range rs {
|
||||
for _, r := range str {
|
||||
rint := int(r)
|
||||
if rint < 128 {
|
||||
jsons.WriteRune(r)
|
||||
|
Loading…
Reference in New Issue
Block a user