Comments (3)
Hi @silkimen we test the plugin only on android emulator for now using a Nexus 5 KitKat device. We didn't test it on ios or devices.
But I'm pretty sure it has the the same error.
The cookie handler on splitfunction supports only lowercase. But the 3rd part server returns Expires part for the cookie with upper E. So I don't think the device type is changing the behavior
I think you should check wor case insensitive or?
from cordova-plugin-advanced-http.
Yes, basically you are right. But I think we should normalize all header keys e.g. having them all in lower-case. So even if the server responds with "Expires", "EXPIRES" or "expires", we should access it with key "expires". I thought we are already doing that, but seems to be broken somehow. That's the reason I'm asking for the device on which this problem occurs.
But I'll implement a workaround for now to fix your problem.
Update: I was wrong, the "expires" string is not a header key, but part of the value. It's not a problem of normalized header keys. Bug is fixed in version 1.5.7.
from cordova-plugin-advanced-http.
Hi thx, for the fast release this is working great!!!
You are right it is better testing for lower case, the reason I didn't do this in my PR is:
On testing for Expires= || expires= || EXPIRES= you have less probabilty to have some problems with for example a token which could be 'eXpireS='
But I think this should be not often a problem ;)
from cordova-plugin-advanced-http.
Related Issues (20)
- How to upload an image to a server as a from data using this plugin? HOT 1
- Can't set name to file when sending FormData HOT 3
- Is this repo still maintained? HOT 2
- [Bug] An SSL error has occurred and a secure connection to the server cannot be made HOT 1
- [Bug] Apparent bug in serializeArray() HOT 1
- [[__NSArrayM insertObject:atIndex:]: object cannot be nil] [Cordova-Ios] App crash with SSL pinned active HOT 4
- How do I make downloaded files viewable in the iPhone's Files and Photos apps? HOT 1
- [Bug] sendRequest doesn't contain success/failure types HOT 1
- [Bug] [platform] deviceready has not fired after 5 seconds HOT 1
- documentation issue - broken link
- Pinned certificate works on Android but not iOS HOT 1
- [Bug] [android] cordova-plugin-file dependency installs version incompatible with cordova-android on Meteor
- Is there a new release planned? HOT 1
- HttpResponseType blob type empty data, even though the request is successful
- Dynamic Data
- [Bug] [Android] TLS connection could not be established: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. HOT 5
- uploadFIle doesn't send parameters
- [Bug] SSL pinning is not working for both iOS and Android HOT 3
- BSF Cordova Ecosystem Crowdfunding Plan
- Android & iOS Certificate Pinning
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 cordova-plugin-advanced-http.