Giter Club home page Giter Club logo

proxyinguiwebview's People

Contributors

pokeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

proxyinguiwebview's Issues

Crashing

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[**NSCFDictionary setObject:forKey:]: mutating method sent to immutable object'
* First throw call stack:
(
0 CoreFoundation 0x0000000107f55c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000107363bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000107f55b9d +[NSException raise:format:] + 205
3 CoreFoundation 0x0000000107e8a783 -[__NSCFDictionary setObject:forKey:] + 99
4 SimpleBrowser 0x0000000105164c4a -[ProxyRequestResponseHandler sendResponseHeaders] + 986
5 SimpleBrowser 0x000000010516543f -[ProxyRequestResponseHandler request:didReceiveResponseHeaders:] + 191
6 SimpleBrowser 0x000000010514cca4 -[ASIHTTPRequest requestReceivedResponseHeaders:] + 228
7 Foundation 0x0000000106cd169a __NSThreadPerformPerform + 299
8 CoreFoundation 0x0000000107e89431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17
9 CoreFoundation 0x0000000107e7f2fd __CFRunLoopDoSources0 + 269
10 CoreFoundation 0x0000000107e7e934 __CFRunLoopRun + 868
11 CoreFoundation 0x0000000107e7e366 CFRunLoopRunSpecific + 470
12 GraphicsServices 0x00000001091e6a3e GSEventRunModal + 161
13 UIKit 0x00000001059ac8c0 UIApplicationMain + 1282
14 SimpleBrowser 0x0000000105139951 main + 97
15 libdyld.dylib 0x00000001079b5145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

responseHeaders might include Number as value

In line 148 of ProxyRequestResponseHandler.m
CFHTTPMessageSetHeaderFieldValue(response, (CFStringRef)header, (CFStringRef)string);

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber length]: unrecognized selector sent to instance 0x822db00'

Example failing header:
X-ASIHTTPRequest-Response-Status-Code: 200

200 is parsed as a Number but not NSString

All GET request get cached

I load a lot of data through GET requests. However, all these request get cached (I only want some of them to get cached). I managed to work around the problem by creating post requests for the ones I didn't need to cache (luckly, we are also responsible for configuring the server-side), but it would be nice to be able to also use GET request without caching.
Maybe we could set another header for the request that need caching so asihttp will now which ones to cache and which ones not to cache

Images not loading correctly

I managed to succesfully integrate offline browsing with ProxyingUIWebView. However there seems to be a problem when the webview loads the images. It does not load all of them. Some times some are loaded and some aren't, and some times others are loaded and others aren't.

When I navigate to the view containing the uiwebview, some images are loaded and some are not.
I go back and then navigate to the view containing the webview again. This time other images are loaded and some are still not loaded.

As a quick-fix, I would also consider not loading any images at all (and showing that little question mark when image is not available) than only loading some of them, if you could point me in the right direction.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.