javascript - Forward slash in rest call using angularjs client and Flask server -
I am calling a comfort flask server from an AngularJs client in a call, a forward in my ID (key) If it does not, then the call works fine if there is a slash, so I did not get any 404 error.
I tried to encode the key (EncoderIconConent) , The key (escaped) ... but still has a 404 error.
My code in the flask
@ app.route ('/ user / & lt; string: uid & gt; / subuser / & lt; string: subuse & gt;
P << > $ Scope.uri = ctrlURL + "S3 / user /" + user_id + "/ subs_user /" + subscribe + "/ key /" + key; $ Http ({method: "delete", url: $ scope.uri} ). Success (Tasks (Data, Position) {...}). Error (Tasks (Data, Status) {...});
Does anyone have an idea?
Thanks for Brian's comment, I The problem was solved that the slash was resolved when my phone was rejected by Apache.
I've added directions to my appetite:
Allow the unified slash nodecode
Comments
Post a Comment