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:
parent
09a7c584eb
commit
0e06ee2589
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user