This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
Response code for redirect helper should use 307 (Temporary Redirect) instead of 302 (Found) #88
Labels
enhancement
New feature or request
Milestone
Bug
When using redirects and the helper function in HTTP/Models/Response/Response.swift:
public convenience init(headers: [HeaderKey: String] = [:], redirect location: String, permanently: Bool = false)
I noticed that the code uses .Found (302). I believe that the industry has moved from using 302 (which was ambiguous in its meeting) to TemporaryRedirect (307).
Can a change be made to change from:
let status: Status = permanently ? .movedPermanently : .found
to:
let status: Status = permanently ? .movedPermanently : .temporaryRedirect
The text was updated successfully, but these errors were encountered: