reverse-proxy icon indicating copy to clipboard operation
reverse-proxy copied to clipboard

Add RequestTransformContext.Query.Collection Case Insensitivity

Open yilativ opened this issue 4 years ago • 2 comments

What should we add or change to make your life better?

Currently, the context.Query.Collection is case-sensitive. So utilizing things like Match-QueryParameters + Remove Query transform becomes inconsistent when matching a route based on query key with IsCaseSensitive = false (default) then wanting to remove that query value it only works if the match is case perfect.

Why is this important to you?

Consistency of operation with Query Value match and transform functionality already existent. Ability to have the context.Query be case insensitive whether through configuration or by default (is there a need for case sensitive query keys?) will alleviate the need for me to do my custom transforms (QueryParameterRemoveTransform) because I need it to pick up query string keys regardless of case

Thank you for the work

yilativ avatar Jan 05 '22 20:01 yilativ

Triage: It is inconsistent with ASP.NET, which defaults to case insensitive treatment. We should fix it.

karelz avatar Jan 06 '22 18:01 karelz

Merged, kudos to @jerry-shao

greenEkatherine avatar Feb 09 '22 12:02 greenEkatherine