0

i have a webserver running in flask, and another application is making GET requests to it that i dont have access to. This is the get path and it works for some requests like

/data/somefilename

@bp.route("/data/<path:filename>", methods=["GET"])

but sometime the application is trying to access it like this with a double slash on the end, from safari

/data//somefilename

and it is throwing a 308 error

i tried

@bp.route("/data/<path:filename>", methods=["GET"], strict_slashes=False)

but still getting the same 308 error

Any suggestions on how to fix this would be greatly appreciated thank you for your time

JRowan
  • 6,824
  • 8
  • 40
  • 59

0 Answers0