Permalink
Browse files

Fix to formatting the URI that is generated.

Did not include the "&" for each additional parameter.
  • Loading branch information...
1 parent 79cac08 commit 697ec6c0cc4f0ee153143ec497b572d521eaf8df @davidsavagejr committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SDammann.WebApi.Versioning/VersionedApiExplorer.cs
View
2 src/SDammann.WebApi.Versioning/VersionedApiExplorer.cs
@@ -257,7 +257,7 @@ private static bool TryExpandUriParameters(IHttpRoute route, string routeTemplat
paramString.Append("?");
foreach (var param in parameterValuesForRoute)
- paramString.AppendFormat("{0}={1}", param.Key, param.Value);
+ paramString.AppendFormat("{2}{0}={1}", param.Key, param.Value, paramString.ToString().Length > 1 ? "&" : string.Empty);
}
expandedRouteTemplate = route.RouteTemplate.Replace("{id}", actionDescriptor.ActionName)

0 comments on commit 697ec6c

Please sign in to comment.