This commit is contained in:
Alexander Sheiko 2020-02-14 16:21:05 +02:00
parent bf5b9db7d6
commit b6c9f13be2

View file

@ -26,7 +26,7 @@ func getHTMLFromJSON(req *http.Request, field string) (*strings.Reader, error) {
htm, ok := ajaxJSON[field].(string) htm, ok := ajaxJSON[field].(string)
if !ok { if !ok {
return nil, fmt.Errorf("filed not found in JSON") return nil, fmt.Errorf("field not found in JSON")
} }
return strings.NewReader(htm), nil return strings.NewReader(htm), nil