Skip to content

Commit

Permalink
Merge pull request yanue#597 from LeeCenY/master
Browse files Browse the repository at this point in the history
Fix subscribe link request cache bug
  • Loading branch information
yanue authored Jun 4, 2020
2 parents 1432f69 + d4f24ed commit 025b938
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion V2rayU/V2raySubscribe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ class V2raySubSync: NSObject {
public func dlFromUrl(url: String, subscribe: String) {
logTip(title: "loading from : ", uri: "", informativeText: url + "\n\n")

Alamofire.request(url).responseString { response in
var request = URLRequest(url: URL(string: url)!)
request.cachePolicy = .reloadIgnoringCacheData

Alamofire.request(request).responseString { response in
switch (response.result) {
case .success(_):
if let data = response.result.value {
Expand Down

0 comments on commit 025b938

Please sign in to comment.