diff --git a/packages/dynamite/lib/src/openapi_builder.dart b/packages/dynamite/lib/src/openapi_builder.dart index 572a904a..0ad95e98 100644 --- a/packages/dynamite/lib/src/openapi_builder.dart +++ b/packages/dynamite/lib/src/openapi_builder.dart @@ -925,7 +925,7 @@ class OpenAPIBuilder implements Builder { response.headers.forEach((final name, final values) { responseHeaders[name] = values.last; }); - return Response( + return _Response( response.statusCode, responseHeaders, await response.bodyBytes, diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index 9ed307d6..fe051775 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -144,7 +144,7 @@ class Client { response.headers.forEach((final name, final values) { responseHeaders[name] = values.last; }); - return Response( + return _Response( response.statusCode, responseHeaders, await response.bodyBytes,