Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Case sensitivity options #299

Merged
merged 2 commits into from Sep 30, 2011
Merged

Conversation

nathanpalmer
Copy link
Contributor

I've added a way to disable case sensitivity within query, parameters and model binding. It's currently configurable through StaticConfiguration.

Two things to note...

I changed the generic version of Merge in CollectionExtensions to a non-generic version that works on strings. I originally had an overload but as this is only used in one place I decided to just change the main version.

Also the case sensitivity options change DynamicDictionary. This is affecting many of the things we need it to in order to accomplish the goal. However, let me know if you think of something that uses DynamicDictionary that SHOULDN'T have this option.

Here is a reference to the old thread where a discussion on this started

http://groups.google.com/group/nancy-web-framework/browse_thread/thread/c5bb96dae8cc0821/bad96cbc7f021b5b?lnk=gst&q=case+sensitive#bad96cbc7f021b5b

Nathan Palmer

@grumpydev
Copy link
Member

Spooky, Andreas was only talking to me about this, and the previous forum discussion, on Friday :-)

@nathanpalmer
Copy link
Contributor Author

Well, I was talking to him about it (possibly Friday) in the context of the OAuth changes and how the case is specified in the spec.

@grumpydev
Copy link
Member

@nathanpalmer can you rebase this rather than merging please? That commit from the 13th will make the history look messy :-)

Modified DynamicDictionary along with the Merge in CollectionExtensions to
enable/disabled based on configuration.
Added a few tests for it
@nathanpalmer
Copy link
Contributor Author

Agreed. It's been rebased now.

@grumpydev
Copy link
Member

That was quick.. thanks :-)

@chrisnicola
Copy link

Nice I actually had a wrapper for the dynamic dictionary to help with this. This will be most handy.

@grumpydev grumpydev merged commit d256022 into NancyFx:master Sep 30, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants