Commit 0ea2b59
committed
Fix HttpResponseMessage implicit operator deadlock risk
Replace .Result with .GetAwaiter().GetResult() and skip
deserialization on failure responses to avoid unnecessary work.
Also propagate StatusCode from the HTTP response.1 parent 817c552 commit 0ea2b59
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
| |||
0 commit comments