<commit_before>﻿using System.Web.Routing;

namespace RestfulRouting
{
	public abstract class Mapper
	{
		private readonly IRouteHandler _routeHandler;

		protected Mapper(IRouteHandler routeHandler)
		{
			_routeHandler = routeHandler;
		}

		protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods)
		{
			return new Route(path,
				new RouteValueDictionary(new { controller, action }),
				new RouteValueDictionary(new { httpMethod = new HttpMethodConstraint(httpMethods) }),
				_routeHandler);
		}
	}
}<commit_msg>fixed issue in Mapper.cs file with incorrect HttpMethodConstraint.<commit_after>﻿using System.Web.Routing;

namespace RestfulRouting
{
	public abstract class Mapper
	{
		private readonly IRouteHandler _routeHandler;

		protected Mapper(IRouteHandler routeHandler)
		{
			_routeHandler = routeHandler;
		}

		protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods)
		{
			return new Route(path,
				new RouteValueDictionary(new { controller, action }),
				new RouteValueDictionary(new { httpMethod = new RestfulHttpMethodConstraint(httpMethods) }),
				_routeHandler);
		}
	}
}
{'fraction_non_alphanumeric': 0.07796610169491526, 'fraction_numerical': 0.0, 'mean_word_length': 5.025510204081633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4711907', 'n_tokens_mistral': 363, 'n_tokens_neox': 325, 'n_words': 87}