File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ open class HTTPCookie : NSObject {
380
380
/// - Parameter headerFields: The response header fields to check for cookies.
381
381
/// - Parameter URL: The URL that the cookies came from - relevant to how the cookies are interpeted.
382
382
/// - Returns: An array of NSHTTPCookie objects
383
- open class func cookies( withResponseHeaderFields headerFields: [ String : String ] , forURL url : URL ) -> [ HTTPCookie ] {
383
+ open class func cookies( withResponseHeaderFields headerFields: [ String : String ] , for URL : URL ) -> [ HTTPCookie ] {
384
384
385
385
//HTTP Cookie parsing based on RFC 6265: https://tools.ietf.org/html/rfc6265
386
386
//Though RFC6265 suggests that multiple cookies cannot be folded into a single Set-Cookie field, this is
@@ -405,7 +405,7 @@ open class HTTPCookie : NSObject {
405
405
//bake the cookies
406
406
var httpCookies : [ HTTPCookie ] = [ ]
407
407
for i in 0 ..< cookieIndices. count- 1 {
408
- if let aCookie = createHttpCookie ( url: url , pairs: nameValuePairs [ cookieIndices [ i] ..< cookieIndices [ i+ 1 ] ] ) {
408
+ if let aCookie = createHttpCookie ( url: URL , pairs: nameValuePairs [ cookieIndices [ i] ..< cookieIndices [ i+ 1 ] ] ) {
409
409
httpCookies. append ( aCookie)
410
410
}
411
411
}
You can’t perform that action at this time.
0 commit comments