Azure / Azure/azure-functions-host

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

Open
#7,918 1 comment 0 reactions 1 assignee Claimed by @brettsam View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

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](https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md):

> :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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.