Git Product home page Git Product logo

Comments (4)

josevalim avatar josevalim commented on June 26, 2024 1

decode is for URI segments. You want to compare it with decode_query instead:

iex(7)> URI.decode_query "foo="
%{"foo" => ""}

from plug.

josevalim avatar josevalim commented on June 26, 2024

According to the spec, foo is the same as foo= but that’s not how it worked before. So this was a bug fix applied to both Elixir and Plug.

from plug.

Skoda091 avatar Skoda091 commented on June 26, 2024

Ok, so this is expected behavior?

But when I run this on latest elixir 1.13.3-otp-24, it gives different results.

iex(1)> URI.decode("files%5B%5D")
"files[]"
iex(2)> URI.decode("foo")
"foo"
iex(3)> URI.decode("foo=")
"foo=

from plug.

josevalim avatar josevalim commented on June 26, 2024

Closing this per the above.

from plug.

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.