43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import io.grpc.internal.GrpcUtil;
|
||
|
import java.io.IOException;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzei implements zzfd, zzfj {
|
||
|
private final boolean zzsj;
|
||
|
|
||
|
public zzei() {
|
||
|
this(false);
|
||
|
}
|
||
|
|
||
|
private zzei(boolean z) {
|
||
|
this.zzsj = false;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzfj
|
||
|
public final void zza(zzfh zzfhVar) {
|
||
|
zzfhVar.zza(this);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzfd
|
||
|
public final void zzb(zzfh zzfhVar) throws IOException {
|
||
|
String requestMethod = zzfhVar.getRequestMethod();
|
||
|
if (requestMethod.equals(GrpcUtil.HTTP_METHOD)) {
|
||
|
return;
|
||
|
}
|
||
|
if ((!requestMethod.equals("GET") || zzfhVar.zzfa().zzew().length() <= 2048) && zzfhVar.zzez().zzaj(requestMethod)) {
|
||
|
return;
|
||
|
}
|
||
|
String requestMethod2 = zzfhVar.getRequestMethod();
|
||
|
zzfhVar.zzag(GrpcUtil.HTTP_METHOD);
|
||
|
zzfhVar.zzfe().zzb("X-HTTP-Method-Override", requestMethod2);
|
||
|
if (requestMethod2.equals("GET")) {
|
||
|
zzfhVar.zza(new zzft((zzez) zzfhVar.zzfa().clone()));
|
||
|
zzfhVar.zzfa().clear();
|
||
|
} else if (zzfhVar.zzfb() == null) {
|
||
|
zzfhVar.zza(new zzew());
|
||
|
}
|
||
|
}
|
||
|
}
|