1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-11-06 08:39:09 +02:00

added http code 500 as allowed response for http, change later to custom allowed codes

This commit is contained in:
Gabriel Marinkovic
2019-09-23 01:40:49 +02:00
parent 61e3a406d8
commit 8922079748

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)
}