 		for (k, v) in response.allHeaderFields {
 			headers[String(describing: k)] = String(describing: v)
 		}
-		addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, for: url))
+		#if os(Linux)
+			addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, forURL: url))
+		#else
+			addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, for: url))
+		#endif
 		
 		return (data, response)
 	}

		for (k, v) in response.allHeaderFields {
			headers[String(describing: k)] = String(describing: v)
		}
		addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, for: url))
		
		return (responseData, response)
	}

		for (k, v) in response.allHeaderFields {
			headers[String(describing: k)] = String(describing: v)
		}
		#if os(Linux)
			addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, forURL: response.url ?? URL(fileURLWithPath: "invalid")))
		#else
			addCookies(HTTPCookie.cookies(withResponseHeaderFields: headers, for: response.url ?? URL(fileURLWithPath: "invalid")))
		#endif
		completionHandler(request)
	}
	
