Set Info to numeric HTTP status code in result object
Changed the Info property to store the raw (short) HTTP status code from response.StatusCode instead of using the formatted output from ResultView.FormatHttpStatusInfo. This provides a simpler, numeric representation of the HTTP status in the result.
This commit is contained in:
@@ -149,7 +149,7 @@ public class InvokeRecActionViewCommandHandler(
|
||||
ActionId = action.Id,
|
||||
Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }),
|
||||
Body = resBody,
|
||||
Info = ResultView.FormatHttpStatusInfo(response.StatusCode),
|
||||
Info = (short)response.StatusCode,
|
||||
Type = ResultType.Main
|
||||
}, cancel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user