Comments (5)
It appears as though the header is being set when searching using the search bar:
But is overridden by UIWebView
when you actually load the page:
This appears to be standard behaviour on iOS, but I'm currently investigating to see if the headers set automatically by UIWebView
can be overwritten.
As an aside, the User Agent string seems to use the build number, which changes with each build we push to Hockey.
from ios-search-and-stories.
There's a way to overwrite that (I've done that in one of my apps). I'll look into it this weekend if you want.
Sent from my iPhone
On 02-05-2014, at 18:03, Mic Pringle [email protected] wrote:
It appears as though the header is being set when searching using the search bar:
But is overridden by UIWebView when you actually load the page:
This appears to be standard behaviour on iOS, but I'm currently investigating to see if the headers set automatically by UIWebView can be overwritten.
As an aside, the User Agent string seems to use the build number, which changes with each build we push to Hockey.
—
Reply to this email directly or view it on GitHub.
from ios-search-and-stories.
Thanks @quanganhdo but I've just pushed a commit that fixes that.
from ios-search-and-stories.
Here's a request sent via the search bar:
Here's the search results being loaded in the web view:
And here's a non-DDG web page being loaded from the results, in the web view:
As you can see, the User Agent is only manipulated on the first two.
This functionality is available in the latest build on Hockey. Give it a shot @nilnilnil and see what you think. Let me know if you notice any unusual behaviour.
from ios-search-and-stories.
@nilnilnil Are you happy for this one to be closed now?
from ios-search-and-stories.
Related Issues (20)
- When refreshing a readability story the page turns red HOT 2
- Address link does not open native maps app HOT 9
- Search-field issue HOT 2
- Crashes on older iPhones running older versions of iOS HOT 15
- Mosaic view completely broken in the new build (6.0.1) HOT 4
- Viewport height issue HOT 7
- Grey border on app icon HOT 6
- Feature request: Add support for multiple tabs HOT 1
- Feature request: Option to switch to dark mode in low light HOT 1
- 'Added' and 'Removed' pop up missing when favoriting a story from the main story feed HOT 1
- Project references files that are ignored by the VCS HOT 6
- Navigation buttons disappear after view video HOT 1
- DuckDuckGo jumps to far back after swiping backwards HOT 1
- Support Universal Links HOT 8
- App crashes when the send feedback button inside the settings view is clicked HOT 7
- Clearing cookies/cache doesn't clear local storage - privacy risk HOT 5
- Feature Request: Support URL Schemes HOT 3
- App crashes on startup (iOS 7.1.2) HOT 4
- Red screen after searching or tapping a story HOT 2
- Add voice search to app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-search-and-stories.