Commit b0e9fa9
committed
Avoiding 0 byte reading from Stream. Issue #60.
This fix avoids 0 byte reading from source Stream to prevent unexpected InvalidOperationException on System.Net APIs.
Original issue report was formed as pull-request, but fixes for issue #59 affects target source, so added new logic based on the idea of the pull request.1 parent a0192ea commit b0e9fa9
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6485 | 6485 | | |
6486 | 6486 | | |
6487 | 6487 | | |
| 6488 | + | |
| 6489 | + | |
| 6490 | + | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
6488 | 6494 | | |
6489 | 6495 | | |
6490 | 6496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
0 commit comments