Skip to content

[SR-2679] corelibs-foundation URLSession delivers redirection delegate methods in the wrong order #4555

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-2679
Radar None
Original Reporter klassobanieras (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

swift-3.0-GM-CANDIDATE
Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-34-generic x86_64)

Additional Detail from JIRA
Votes 1
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: f06e5e5a7ff65a4cd57f89c8de0d496b

Issue Description:

When a corelibs-foundation URLSession data task encounters a redirection response, it first calls the didReceiveResponse delegate method and then calls willPerformHTTPRedirection.

Instead a single response should be delivered only after any redirections have occurred, or if the delegate indicates not to follow a redirection by passing 'nil' to the willPerformHTTPRedirection completion callback.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions