Giter Site home page Giter Site logo

Comments (7)

cweiske avatar cweiske commented on May 20, 2024

@snarfed: Should I adjust getallheaders() or lowercase its result in authorize()?

from wordpress-micropub.

voxpelli avatar voxpelli commented on May 20, 2024

The getallheaders() seems to already run a strtolower()? https://github.com/snarfed/wordpress-micropub/blob/f91bd8c88a1e2ad0399745537ab7aa442d04a3aa/micropub.php#L555

from wordpress-micropub.

snarfed avatar snarfed commented on May 20, 2024

true! the bug is probably just that the 'Authorization's here should be 'authorization's.

from wordpress-micropub.

voxpelli avatar voxpelli commented on May 20, 2024

No, because it also does a ucwords(), but maybe a function name collision? Not the most unique of function names that one

7 sep. 2016 kl. 18:07 skrev Ryan Barrett [email protected]:

true! the bug is probably just that 'Authorization' here should be 'authorization'.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from wordpress-micropub.

cweiske avatar cweiske commented on May 20, 2024

here in my local installation, the micropub-provided getallheaders is not used. So while the mp-provided getallheaders Word-Cases the header names (thus Authorization would work), the one that's actually used does not.

from wordpress-micropub.

cweiske avatar cweiske commented on May 20, 2024

Ah. PHP itself defines it. http://php.net/getallheaders

from wordpress-micropub.

cweiske avatar cweiske commented on May 20, 2024

So lowercasing the result of this function is the correct way.

from wordpress-micropub.

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.