Skip to content

Commit 441eeb2

Browse files
committed
fix: fix 1000+ buckets pagination issue
1 parent 7595793 commit 441eeb2

File tree

1 file changed

+1
-0
lines changed
  • google/cloud/storage/internal/rest

1 file changed

+1
-0
lines changed

google/cloud/storage/internal/rest/stub.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ StatusOr<ListBucketsResponse> RestStub::ListBuckets(
183183
if (!headers.ok()) return headers;
184184
request.AddOptionsToHttpRequest(builder);
185185
builder.AddQueryParameter("project", request.project_id());
186+
builder.AddQueryParameter("pageToken", request.page_token());
186187
return ParseFromRestResponse<ListBucketsResponse>(
187188
storage_rest_client_->Get(context, std::move(builder).BuildRequest()));
188189
}

0 commit comments

Comments
 (0)