Coder Social home page Coder Social logo

Comments (3)

mburger81 avatar mburger81 commented on June 28, 2024

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.

silkimen avatar silkimen commented on June 28, 2024

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.

mburger81 avatar mburger81 commented on June 28, 2024

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)

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.