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

delete 'status_code' from HTTPResponse.GetIn

This commit is contained in:
Владимир Фетисов 2019-10-07 21:42:57 +03:00
parent e01f75d6f6
commit 05eb9bc5f5

View File

@ -89,7 +89,7 @@ func (resp *HTTPResponse) GetIn(ctx context.Context, path []core.Value) (core.Va
switch field {
case "status":
return values.NewString(resp.Status), nil
case "status_code", "statusCode":
case "statusCode":
return values.NewInt(resp.StatusCode), nil
case "headers":
if len(path) == 1 {