OkHttp3 icon indicating copy to clipboard operation
OkHttp3 copied to clipboard

java.lang.IllegalArgumentException: Unexpected char 0x663 at 8 in Cache-Control value: max-age=٣١٥٣٦٠٠٠

Open youqingmo opened this issue 6 years ago • 0 comments

User-Agent里面会包含中文,就会报错 PRODUCT=BLA-L29 DEVICE=HWBLA java.lang.IllegalArgumentException: Unexpected char 0x663 at 8 in Cache-Control value: max-age=٣١٥٣٦٠٠٠ at okhttp3.Headers$Builder.checkNameAndValue(Headers.java:320) at okhttp3.Headers$Builder.set(Headers.java:300) at okhttp3.Response$Builder.header(Response.java:351) at com.okhttplib.helper.BaseHelper$1.intercept(BaseHelper.java:107) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at com.okhttplib.helper.BaseHelper$2.intercept(BaseHelper.java:131) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:784)

youqingmo avatar Jan 21 '19 01:01 youqingmo