Skip to content

refactor!: migrate from ProtonMail/resty fork to upstream resty/v2#213

Open
mcanevet wants to merge 1 commit intoProtonMail:masterfrom
mcanevet:feat/upstream-resty
Open

refactor!: migrate from ProtonMail/resty fork to upstream resty/v2#213
mcanevet wants to merge 1 commit intoProtonMail:masterfrom
mcanevet:feat/upstream-resty

Conversation

@mcanevet
Copy link
Copy Markdown

Upstream resty v2.16.4+ added resetFieldReaders() (PR #953, Jan 2025), making the fork unnecessary. bytes.Reader implements io.ReadSeeker which upstream uses for retry via Seek(0, 0) — equivalent to the fork's GetMultipartReader() for static byte data.

Effectively reverts the fork dependency introduced in 933cd67 (GODT-3012), replacing MultiPartStream with bytes.NewReader + SetRetryResetReaders(true).

BREAKING CHANGE: UploadBlock signature changed from resty.MultiPartStream to io.ReadSeeker.

@mcanevet mcanevet force-pushed the feat/upstream-resty branch from 73641f4 to f2c5157 Compare March 29, 2026 08:12
Upstream resty v2.16.4+ added resetFieldReaders() (PR #953, Jan 2025),
making the fork unnecessary. bytes.Reader implements io.ReadSeeker which
upstream uses for retry via Seek(0, 0) — equivalent to the fork's
GetMultipartReader() for static byte data.

Effectively reverts the fork dependency introduced in 933cd67 (GODT-3012),
replacing MultiPartStream with bytes.NewReader + SetRetryResetReaders(true).

BREAKING CHANGE: UploadBlock signature changed from resty.MultiPartStream
to io.ReadSeeker.
@mcanevet mcanevet force-pushed the feat/upstream-resty branch from 989cf19 to 596c6bd Compare April 15, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant