1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-16 03:21:03 +02:00

added http response status 500 as valid

This commit is contained in:
Gabriel Marinkovic 2019-10-13 19:23:15 +02:00
parent 09a7c584eb
commit 0e06ee2589

View File

@ -152,7 +152,7 @@ func (drv *Driver) Open(ctx context.Context, params drivers.Params) (drivers.HTM
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusInternalServerError {
return nil, errors.New(resp.Status)
}