pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.32k stars 184 forks source link

WormHoly Cannot get NSMutableURLRequest request. #56

Open TimberTang opened 5 years ago

TimberTang commented 5 years ago

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 commented 5 years ago

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

pmusolino commented 5 years ago

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

TimberTang commented 5 years ago

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

yeah, i am using the lastly version~

pmusolino commented 2 years ago

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?