-
Notifications
You must be signed in to change notification settings - Fork 16
Commit 0859ead
Handle large payloads on 32bit platforms gracefully (#29)
Handle large payloads on 32bit platforms gracefully
### Motivation
If there's a request payload with a number of bytes that can't fit into 32 bits, we'd crash.
### Modifications
Use a graceful initializer and use `.unknown` (so no `content-length` will be sent) if the size exceeds the max of a 32bit int.
### Result
No crash for large payloads on 32bit platforms.
### Test Plan
Tests pass.
Reviewed by: dnadoba
Builds:
✔︎ pull request validation (5.10) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
#29 1 parent f5bf294 commit 0859ead
File tree
1 file changed
+2
-1
lines changed- Sources/OpenAPIAsyncHTTPClient
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 | - | ||
184 | + | ||
185 | + | ||
185 | 186 |
| |
186 | 187 |
| |
187 | 188 |
| |
|
0 commit comments