add pseudo protocol attachment://

This commit is contained in:
Egor Kovetskiy
2019-04-20 10:24:30 +03:00
parent 2abc2f122b
commit 51f28f8f06
5 changed files with 89 additions and 38 deletions

View File

@@ -239,9 +239,9 @@ func (api *API) UpdateAttachment(
return info, err
}
//if request.Raw.StatusCode != 200 {
return info, newErrorStatusNotOK(request)
//}
if request.Raw.StatusCode != 200 {
return info, newErrorStatusNotOK(request)
}
if len(result.Results) == 0 {
return info, errors.New(