Coder Social home page Coder Social logo

Comments (6)

mivanov avatar mivanov commented on May 5, 2024 2

Forgot to mention, I love Mockoon, thank you for this glorious thing!

from mockoon.

255kb avatar 255kb commented on May 5, 2024 1

so what about:

  1. define a route /test/xxxx
  2. request it with /test////xxxx
  3. app convert it to /test/xxxx so you get the declared route with defined status without any redirection?

from mockoon.

255kb avatar 255kb commented on May 5, 2024 1

ok, it's done, it will be released in v1.0.0 in the coming weeks (before end of August), thanks for your help 👍

from mockoon.

255kb avatar 255kb commented on May 5, 2024

Thanks, I love that you love Mockoon 😄

Concerning the // I will rewrite the url to match the input mask that remove consecutive slashes.
What do you think, should I silently serve the route (the URL still shows multiple slashes) or redirect with a 301?

from mockoon.

mivanov avatar mivanov commented on May 5, 2024

I have seen all variations, since it's up to the server or sometimes application, but I believe silently serving the route is most common. In my experience I would rank them like this in order from most common to least common:

  1. 200
  2. 302
  3. 404
  4. 301 maybe, but I'm honestly not sure I have seen this.

I would be happy with a 200, or with allowing consecutive slashes so one could replicate any behavior.

from mockoon.

mivanov avatar mivanov commented on May 5, 2024

That makes perfect sense and would solve the issue I had.

from mockoon.

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.