We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cede608 commit 91e2cd0Copy full SHA for 91e2cd0
lib/shared/providers/net_client_provider/net_client_provider.dart
@@ -322,7 +322,8 @@ final class _PointsChangesChecker extends Interceptor {
322
final class _GzipEncodingChecker extends Interceptor with LoggerMixin {
323
@override
324
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
325
- if (options.uri.queryParameters['goto'] == 'findpost') {
+ // Likely to have redirect on post methods.
326
+ if (options.method != 'GET' || options.uri.queryParameters['goto'] == 'findpost') {
327
info('removing gzip encoding in request');
328
options.headers[HttpHeaders.acceptEncodingHeader] = 'deflate, br';
329
}
0 commit comments