title: how to contain header when I redirect in retrofit
body: <p>I tried to make oauth2 for android application. it has little bug.</p>
  
  <p>My bug is It doesn't have header like Authorization when I redirect</p>
  
  <p>MyCookieCode. It send Authorization when I was login. but It doesn't work when I redirect</p>
  
  <pre><code>public static Retrofit getLoginRetrofitOnAuthz() {
      Retrofit.Builder builder = new Retrofit.Builder().baseUrl(ServerValue.AuthServerUrl).addConverterFactory(GsonConverterFactory.create());
      if (LoginRetrofitAuthz == null) {
          httpClientAuthz.addInterceptor(new Interceptor() {
              @Override
              public okhttp3.Response intercept(Chain chain) throws IOException {
  
                  String str = etUsername.getText().toString() + ":" + etPassword.getText().toString();
                  String Base64Str = "Basic " + Base64.encodeToString(str.getBytes(), Base64.NO_WRAP);
                  System.out.println(Base64Str);
                  Request request = chain.request().newBuilder().addHeader("Authorization", Base64Str).build();
  
                  return chain.proceed(request);
              }
          });   
          CookieManager cookieManager = new CookieManager();
          cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
          httpClientAuthz.cookieJar(new JavaNetCookieJar(cookieManager));
  
          LoginRetrofitAuthz = builder.client(httpClientAuthz.build()).build();
      }
      return LoginRetrofitAuthz;
  }
  </code></pre>
  
  <p>Server Result (Top-Login, Bottom, Redirect)
  <a href="https://i.stack.imgur.com/d57q9.png" rel="nofollow"><img src="https://i.stack.imgur.com/d57q9.png" alt="enter image description here"></a></p>
  
  <p>Do you know how to staying header on redirect ?</p>