Skip to content

Commit

Permalink
Merge pull request #1161 from nextcloud/perf/dynamite_runtime/deseria…
Browse files Browse the repository at this point in the history
…lization_order
  • Loading branch information
Leptopoda authored Nov 19, 2023
2 parents cb28c3a + 2cec2ed commit b207ded
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ class DynamiteRawResponse<B, H> {
// ignore: discarded_futures
response.then(
(final response) async {
_rawHeaders = response.responseHeaders;
final headers = deserializeHeaders<H>(_rawHeaders, serializers, headersType);

_rawBody = switch (bodyType) {
const FullType(Uint8List) => await response.bytes,
const FullType(String) => await response.string,
_ => await response.json,
};
_rawHeaders = response.responseHeaders;

final body = deserializeBody<B>(_rawBody, serializers, bodyType);
final headers = deserializeHeaders<H>(_rawHeaders, serializers, headersType);

_response = DynamiteResponse<B, H>(
response.statusCode,
Expand Down

0 comments on commit b207ded

Please sign in to comment.