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:
parent
e01f75d6f6
commit
05eb9bc5f5
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user