如何使AWS API Gateway请求路径不区分大小写 [英] How to make the AWS API Gateway request path case insensitive

查看:48
本文介绍了如何使AWS API Gateway请求路径不区分大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AWS API网关中的请求路径设置似乎区分大小写.谁能建议任何解决方案以使请求路径不区分大小写

It seems that the request path setup in AWS API gateway is case sensitive. Can anyone suggest any solution to make the request path to be case insensitive

例如:可以访问 https://api-gw.some-domain/health 无法访问 https://api-gw.some-domain/Health .(404)

For example: https://api-gw.some-domain/health is accessible whereas https://api-gw.some-domain/Health is not accessible. (404)

推荐答案

不幸的是,像大多数AWS产品一样,API网关在设计上也区分大小写.

Unfortunately API Gateway, like most of AWS' offerings, is case-sensitive by design.

因此,您有两个选择:

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆