Skip to content

Commit

Permalink
fix(network): fix Reponse.Ok (#1061)
Browse files Browse the repository at this point in the history
closes #1057
  • Loading branch information
kblok committed Dec 17, 2020
1 parent a388277 commit 4487dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlaywrightSharp/Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal Response(IChannelOwner parent, string guid, ResponseInitializer initial
public IDictionary<string, string> Headers => _headers;

/// <inheritdoc />
public bool Ok => Status == HttpStatusCode.OK;
public bool Ok => Status == 0 || ((int)Status >= 200 && (int)Status <= 299);

/// <inheritdoc />
public IRequest Request => _initializer.Request.Object;
Expand Down

0 comments on commit 4487dee

Please sign in to comment.