aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-01-12 08:57:27 -0600
committerJP Dillingham <jp@dillingham.me>2026-01-12 08:57:27 -0600
commitc313134d97b441d9abaaf363bb83a4ceff66746d (patch)
tree590647fe87e4ee98102ba00804549ec6b539d7e0
parent5b2857a39a0f00745d3d57f85ad3b5c4b8183c8b (diff)
downloadslskd-c313134d97b441d9abaaf363bb83a4ceff66746d.tar.gz
docs
-rw-r--r--src/slskd/Common/Middleware/UrlEncodingModelBinder.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs b/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs
index 9ec52302..9592e75e 100644
--- a/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs
+++ b/src/slskd/Common/Middleware/UrlEncodingModelBinder.cs
@@ -31,7 +31,7 @@ using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata;
/// For this to work as intended, method parameters must:
///
/// <list>
-/// <item>Use either Path binding (e.g [FromRoute])</item>
+/// <item>Use Path binding (e.g [FromRoute])</item>
/// <item>Have a backing type of string</item>
/// <item>Be decorated with the [UrlEncoded] attribute</item>
/// </list>
@@ -46,7 +46,7 @@ public class UrlEncodingModelBinder : IModelBinder
/*
given the information in the provided ModelBindingContext,
- 1. determine which 'model' (named route parameter) we're trying to bind a value for (e.g. 'foo')
+ 1. determine which 'model' (named route parameter) we're trying to bind a value for (e.g. 'bar')
2. from the full route template (e.g. api/v{version:apiVersion}/foo/{bar}), determine the index of
the model we are looking for in the template, segmented by forward slashes (e.g. 3rd in example above)
3. from the raw, unmanipulated request URL, extract the Nth forward-slash-separated value; this will be our