pmusolino / Wormholy

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

UIWebView 302 Redirects cause duplicate requests #40

Closed alpriest closed 2 years ago

alpriest commented 6 years ago

When using Wormholy, a UIWebView that receives a 302 Redirect response issues 2 requests for the redirect URL. You can see it happening by monitoring the web requests in Charles. This does not happen with WKWebView but there is a bug with that implementation which means I have to use UIWebView for now.

I've attached a sample project which demonstrates the failing behaviour, and also screenshots illustrating the duplicate request.

Without Wormholy installed:

screen shot 2018-08-30 at 15 07 10

With Wormholy installed

screen shot 2018-08-30 at 15 10 33

Wormholy-WebView-Duplicate-Request-Example.zip

pmusolino commented 6 years ago

This is really strange. I will investigate.

yangfeiyu commented 5 years ago

I meet too. Did you find the root cause?

fvvliet commented 5 years ago

Any updates on this ?

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?

alpriest commented 2 years ago

This is still an issue with 1.6.5.

As UIWebView was deprecated in iOS 12.0 I tested with WKWebView and it is does not occur with that.