Skip to content

Commit 0e7c47b

Browse files
authored
Bug fix for resource pagination (#139)
1 parent 22687c6 commit 0e7c47b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/code/common/Http.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static async IAsyncEnumerable<JsonObject> ListJsonObjects(this HttpPipeli
2020

2121
while (nextLink is not null)
2222
{
23-
var responseJson = await pipeline.GetJsonObject(uri, cancellationToken);
23+
var responseJson = await pipeline.GetJsonObject(nextLink, cancellationToken);
2424

2525
var values = responseJson.TryGetJsonArrayProperty("value")
2626
.Map(jsonArray => jsonArray.Choose(node => node as JsonObject))
@@ -86,4 +86,4 @@ private static Response Validate(this Response response)
8686
? throw new InvalidOperationException($"HTTP request to URI failed with status code {response.Status}. Content is '{response.Content}'.")
8787
: response;
8888
}
89-
}
89+
}

0 commit comments

Comments
 (0)