You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using OkHttp with an HTTP2 server, the logging generated by logging-interceptor is wrong with regards to the protocol. it prints "http/1.1" when in reality it is "h2"
(since in line
Create a request to a http2 capable server, fire it off, and inspect the Response (there the protocol is set to "h2" as expected), and watch the interceptor log "http/1.1".
Write a failing test:
its properly more a definition of using http1.1 as a default value, instead of saying "we do not know".
The text was updated successfully, but these errors were encountered:
What kind of issue is this?
Summary
when using OkHttp with an HTTP2 server, the logging generated by logging-interceptor is wrong with regards to the protocol. it prints "http/1.1" when in reality it is "h2"
(since in line
okhttp/okhttp/src/main/java/okhttp3/RealCall.java
Line 184 in a94f952
https://github.com/square/okhttp/blob/master/okhttp-logging-interceptor/src/main/java/okhttp3/logging/HttpLoggingInterceptor.java#L154 , thus the result will be "http/1.1", which is extremely confusing and wrong.)
how to verify this is ? / reproduce this
Create a request to a http2 capable server, fire it off, and inspect the Response (there the protocol is set to "h2" as expected), and watch the interceptor log "http/1.1".
its properly more a definition of using http1.1 as a default value, instead of saying "we do not know".
The text was updated successfully, but these errors were encountered: