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

Removed BuiltInCultureConventions.PathCulture by default #1447

Merged
merged 1 commit into from
Feb 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions src/Nancy/Conventions/DefaultCultureConventions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using Nancy.Session;

public class DefaultCultureConventions : IConvention
{
Expand All @@ -16,7 +12,7 @@ public class DefaultCultureConventions : IConvention
/// <param name="conventions"></param>
public void Initialise(NancyConventions conventions)
{
this.ConfigureDefaultConventions(conventions);
ConfigureDefaultConventions(conventions);
}

/// <summary>
Expand All @@ -40,19 +36,16 @@ public Tuple<bool, string> Validate(NancyConventions conventions)
/// Setup default conventions
/// </summary>
/// <param name="conventions"></param>
private void ConfigureDefaultConventions(NancyConventions conventions)
private static void ConfigureDefaultConventions(NancyConventions conventions)
{
conventions.CultureConventions = new List<Func<NancyContext, CultureInfo>>(6)
conventions.CultureConventions = new List<Func<NancyContext, CultureInfo>>
{
BuiltInCultureConventions.FormCulture,
BuiltInCultureConventions.PathCulture,
BuiltInCultureConventions.HeaderCulture,
BuiltInCultureConventions.SessionCulture,
BuiltInCultureConventions.CookieCulture,
BuiltInCultureConventions.ThreadCulture
};

}

}
}