Hi. With Retrofit library i have a request to pref...
# squarelibraries
m
Hi. With Retrofit library i have a request to prefix the user-agent header with some text. I cannot manage to find a way to read the current default one and prefix it. When i try to print the headers, there is no User-Agent header. But server clearly tells me one is being sent. Appreciate some help here. Thanks!
j
OkHttp adds the user agent. You should be able to read it in a network interceptor, and add any prefix you need
👍 1