Skip to content

fix: forward requestForDownload in -initWithUpdateRequest:requestForDownload:#317

Merged
MarshallOfSound merged 1 commit into
mainfrom
sam/fix-request-for-download
May 4, 2026
Merged

fix: forward requestForDownload in -initWithUpdateRequest:requestForDownload:#317
MarshallOfSound merged 1 commit into
mainfrom
sam/fix-request-for-download

Conversation

@MarshallOfSound
Copy link
Copy Markdown
Collaborator

The two-arg convenience initializer accepted a requestForDownload block and discarded it, forwarding a fresh default block to the designated initializer instead. SQRLUpdater.h:152-157 documents this overload as the way to attach Authorization headers to the zip download, and h:106-107 promises the property's default is "the argument that was originally passed to -initWithUpdateRequest:requestForDownload:" — neither was true.

Regressed in c80f006. The 4-arg designated initializer and the writable requestForDownload property both work, which is likely why this was never reported.

Adds a test that fails on main.

@MarshallOfSound MarshallOfSound enabled auto-merge (squash) May 3, 2026 21:31
@MarshallOfSound MarshallOfSound force-pushed the sam/fix-request-for-download branch from b1a0bbc to 7a0605a Compare May 3, 2026 21:56
…ownload:

The two-arg convenience initializer accepted a requestForDownload block
and discarded it, forwarding a fresh default block to the designated
initializer instead. SQRLUpdater.h:152-157 documents this overload as
the way to attach Authorization headers to the zip download, and
h:106-107 promises the property's default is the argument passed here;
neither was true.

Regressed in c80f006. The 4-arg designated initializer and the
writable requestForDownload property both work, which is likely why
this was never reported.
@MarshallOfSound MarshallOfSound force-pushed the sam/fix-request-for-download branch from 87143b4 to 31dbc38 Compare May 4, 2026 05:40
@MarshallOfSound MarshallOfSound disabled auto-merge May 4, 2026 05:49
@MarshallOfSound MarshallOfSound merged commit 65e7018 into main May 4, 2026
3 of 8 checks passed
@MarshallOfSound MarshallOfSound deleted the sam/fix-request-for-download branch May 4, 2026 05:49
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