Gunicorn: url with two slashs

Created on 21 Feb 2019  路  2Comments  路  Source: benoitc/gunicorn

Dear expert:

We use both unicorn 19.9.0 and 19.7.1 to start our bottle app in our dev env:

With version 19.7.1
http://127.0.0.1:5000//test(two slashes) and http://127.0.0.1:5000/test(one slash) can both get the right result.

Wiht version 19.9.0:
Can only get the result with http://127.0.0.1:5000/test(one slash).

What is the difference between 19.7.1 and 19.9.0? how can we support "//" with versioon 19.9.0?

Most helpful comment

Do you have two routes defined in your bottle app? In HTTP //test and /test are different. We fixed a bug in Gunicorn in #1511 and now you need to define both routes if you want both to work.

All 2 comments

Do you have two routes defined in your bottle app? In HTTP //test and /test are different. We fixed a bug in Gunicorn in #1511 and now you need to define both routes if you want both to work.

Closing this as the question has already been answered.

Was this page helpful?
0 / 5 - 0 ratings