fix: simplify _dioBinary in voice test page to avoid interceptor conflicts
Remove shared interceptors from the binary Dio instance to prevent request dedup/retry interceptors from interfering with audio downloads. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c02c2a9a11
commit
7cda482e49
|
|
@ -55,11 +55,10 @@ class _VoiceTestPageState extends ConsumerState<VoiceTestPage> {
|
|||
final base = ref.read(dioClientProvider);
|
||||
return Dio(BaseOptions(
|
||||
baseUrl: base.options.baseUrl,
|
||||
headers: Map.from(base.options.headers),
|
||||
connectTimeout: const Duration(seconds: 30),
|
||||
receiveTimeout: const Duration(seconds: 120),
|
||||
responseType: ResponseType.bytes,
|
||||
))..interceptors.addAll(base.interceptors);
|
||||
));
|
||||
}
|
||||
|
||||
Dio get _dioJson => ref.read(dioClientProvider);
|
||||
|
|
|
|||
Loading…
Reference in New Issue