Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Double slash at the end of base path of url

Not applicable

How to handle double slash at the end of base path of url?

Lets say I have proxy setup having base path as below:

https://myorg.apigee.net/subpath

which handles all the conditional flow hitting above url.

Then I have proxy with base path as below to handle invalid resource url:

https://myorg.apigee.net/

But, if I hit below url,

https://myorg.apigee.net//

It gives:

{"fault": {"faultstring": "Invalid path GET // HTTP/1.1","detail": {"errorcode": "protocol.http.InvalidPath"}}}

How to handle this invalid double slash and return customize error message.

Thanks,

0 9 2,294
9 REPLIES 9