Skip to content

Commit

Permalink
Merge pull request #3063 from longtn-imt/longtn-imt
Browse files Browse the repository at this point in the history
fix can't change response when modifyResponse
  • Loading branch information
jonataslaw authored Sep 24, 2024
2 parents 2001a1c + cb34e45 commit cbb8c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get_connect/http/src/interceptors/get_modifiers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GetModifier<S> {
var newResponse = response;
if (_responseModifiers.isNotEmpty) {
for (var interceptor in _responseModifiers) {
newResponse = await interceptor(request, response) as Response<T>;
newResponse = await interceptor(request, newResponse) as Response<T>;
}
}

Expand Down

0 comments on commit cbb8c6c

Please sign in to comment.