Commit 09fd846
authored
Update ChunkFromFileChannelRequestEntity.java
The -1 can cause the last byte to not end up in the request body (incomplete file), causing the server to time out because it expects the content length to be one byte larger. However, this one byte that isn't loaded and isn't sent is present in the file.
I was able to successfully test this and it fixed the error for me.
Signed-off-by: Alexander-Ger-Reich <50119493+Alexander-Ger-Reich@users.noreply.github.com>1 parent 9e3c004 commit 09fd846
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- library/src/main/java/com/owncloud/android/lib/common/network
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments