Case Insensitive URLs for wso2 Request URL

ぃ、小莉子 提交于 2020-01-06 08:47:22

问题


I created an api with context MyStudents in wso2 publisher. So the Request URL is MyStudents/v1. When I publish this api, I have resource /Students/{name}. In the wso2 store, when I try out the feature, the URL is http://MyServer.com/MyStudents/v1/Students/foo. If I keep the case as is in the URL, then my api works. If I use any other tool to call and change the case in url to http://MyServerName.com/mystudents/students/foo, then I get a 202 error. Can you please tell me how to make my urls case insensitive in wso2? Thanks.


回答1:


According to HTTP/1.1 specification, RFC2621 section 3.2.3 (http://tools.ietf.org/html/rfc2616#section-3.2.3) the path in HTTP URLs is case-sensitive. So from my point of view the WSO2 API Manager is handling the API URL correctly.



来源:https://stackoverflow.com/questions/26087790/case-insensitive-urls-for-wso2-request-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!