Skip to content

Commit 994e069

Browse files
committed
- fixes a bug where response headers for collection pages would be absent
1 parent f444caf commit 994e069

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Templates/Java/requests_extensions/BaseEntityCollectionPage.java.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ String s = c.TypeName();
2323
* @param builder the request builder for the next collection page
2424
*/
2525
public <#=c.TypeCollectionPage()#>(final <#=c.TypeCollectionResponse()#> response, final <#=c.ITypeCollectionRequestBuilder()#> builder) {
26-
super(response.value, builder);
26+
super(response.value, builder, response.additionalDataManager());
2727
}
2828
}

Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesPage.java.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ import <#=importNamespace#>.http.BaseCollectionPage;
2626
* @param builder the request builder for the next collection page
2727
*/
2828
public <#=c.TypeCollectionWithReferencesPage()#>(final <#=c.TypeCollectionResponse()#> response, final <#=c.ITypeCollectionWithReferencesRequestBuilder()#> builder) {
29-
super(response.value, builder);
29+
super(response.value, builder, response.additionalDataManager());
3030
}
3131
}

Templates/Java/requests_extensions/BaseMethodCollectionPage.java.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import <#=importNamespace#>.http.BaseCollectionPage;
4747
* @param builder The request builder for the next collection page
4848
*/
4949
public <#=c.TypeCollectionPage()#>(final <#=c.TypeCollectionResponse()#> response, final <#=c.ITypeCollectionRequestBuilder()#> builder) {
50-
super(response.value, builder);
50+
super(response.value, builder, response.additionalDataManager());
5151
<# if (deltaPage) { #>
5252

5353
if (response.getRawObject().get("@odata.deltaLink") != null) {

0 commit comments

Comments
 (0)