azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

HttpTrigger route case sensitivity - support with a new config option?

Open colgreen opened this issue 4 years ago • 1 comments

We are developing a new REST API using Azure functions (using the isolated process hosting). I thought it would be beneficial to enforce URL path case sensitivity, as per this entry in the MS Azure API Guidelines:

:white_check_mark: DO treat service-defined URL path segments as case-sensitive. If the passed-in case doesn't match what the service expects, the request MUST fail with a 404-Not found HTTP return code.

Is there a simple way of achieving this? I think ideally it would be a built-in config setting.

I think it's beneficial to enforce casing, because having mixed case URLs in use in different web apps and such could be a source of confusion and bugs in the future.

colgreen avatar Nov 29 '21 10:11 colgreen

Transferring this to the host repo for review as this is not something controlled by the worker.

fabiocav avatar Nov 30 '21 22:11 fabiocav