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
The HttpRequest.newBuilder() is a convenient function for creating copy of HttpRequest to modify it, as an user I expect that it copies all data from original request. But unfortunately it does so for all fields except executionContext field.
The problem with this is when you have a chain of HttpInterceptor's and each depends on executionContext you must make sure that all interceptors in the chain also uses HttpRequest.Builder.addExecutionContext() to avoid bugs with missing executionContext.
Please consider copying executionContext field in HttpRequest.newBuilder() by default, as it done with other fields.
Steps to reproduce the behavior
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.
Version
4.1.0
Summary
The
HttpRequest.newBuilder()
is a convenient function for creating copy ofHttpRequest
to modify it, as an user I expect that it copies all data from original request. But unfortunately it does so for all fields exceptexecutionContext
field.The problem with this is when you have a chain of
HttpInterceptor
's and each depends onexecutionContext
you must make sure that all interceptors in the chain also usesHttpRequest.Builder.addExecutionContext()
to avoid bugs with missingexecutionContext
.Please consider copying
executionContext
field inHttpRequest.newBuilder()
by default, as it done with other fields.Steps to reproduce the behavior
No response
Logs
No response
The text was updated successfully, but these errors were encountered: