mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-07 10:14:13 -04:00
LibraryItemAPI: Fixing dual / in page responses
This commit is contained in:
parent
e0f96d0b56
commit
e93b48bc53
@ -82,7 +82,7 @@ namespace Kyoo.Api
|
||||
protected Page<TResult> Page<TResult>(ICollection<TResult> resources, int limit)
|
||||
where TResult : IResource
|
||||
{
|
||||
return new Page<TResult>(resources,
|
||||
return new Page<TResult>(resources,
|
||||
new Uri(BaseURL, Request.Path),
|
||||
Request.Query.ToDictionary(x => x.Key, x => x.Value.ToString(), StringComparer.InvariantCultureIgnoreCase),
|
||||
limit);
|
||||
|
@ -43,7 +43,7 @@ namespace Kyoo.Api
|
||||
new Pagination(limit, afterID));
|
||||
|
||||
return new Page<LibraryItem>(resources,
|
||||
new Uri(_baseURL + Request.Path),
|
||||
new Uri(_baseURL, Request.Path),
|
||||
Request.Query.ToDictionary(x => x.Key, x => x.Value.ToString(), StringComparer.InvariantCultureIgnoreCase),
|
||||
limit);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user