Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WormHoly Cannot get NSMutableURLRequest request. #56

Open
TimberTang opened this issue Apr 4, 2019 · 4 comments
Open

WormHoly Cannot get NSMutableURLRequest request. #56

TimberTang opened this issue Apr 4, 2019 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@TimberTang
Copy link

that's my code

NSMutableURLRequest *request = [requestSerializer requestWithMethod:[obj methodString] URLString:[NSString stringWithFormat:@"%@%@", [obj apiUrl]] parameters:params error:nil];
    
    NSURLSessionDataTask *dataTask = [self.manager dataTaskWithRequest:request uploadProgress:^(NSProgress * _Nonnull uploadProgress) {
        
    } downloadProgress:^(NSProgress * _Nonnull downloadProgress) {
        
    } completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject,

breakpoint not run here in wormholy

override init(request: URLRequest, cachedResponse: CachedURLResponse?, client: URLProtocolClient?) {
        super.init(request: request, cachedResponse: cachedResponse, client: client)
        
        if session == nil {
            session = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
        }
    }
@TimberTang
Copy link
Author

In swift 4 it is no problem !
but, i am upgreate to swift 5, from #51
glade to have a answer!

@pmusolino pmusolino added the help wanted Extra attention is needed label Apr 4, 2019
@pmusolino
Copy link
Owner

Hi there. Are you using the fork of @iiiCeBlink or the last version of Wormholy?

@TimberTang
Copy link
Author

Hi there. Are you using the fork of @iiiCeBlink or the last version of Wormholy?

yeah, i am using the lastly version~

@pmusolino
Copy link
Owner

I released a new (big) version of Wormholy (1.6.5) with some improvements and fixes. https://github.com/pmusolino/Wormholy/releases/tag/1.6.5 Can you test it and let me know if you are still encountering this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants