How to add multiple headers with ok Http
<p>I am using Retrofit 2 and Okhttp for my android project. I want to add multiple headers in the api request.</p>

<p>This is my interceptor code :</p>

<pre><code>public class NetworkInterceptors implements Interceptor {
@Override
public Response intercept(Interceptor.Chain chain) throws IOException {

    Request request = chain.request().newBuilder()
            .addHeader("Userid", "10034")
            .addHeader("Securitykey", "Fb47Gi")
            .build();
    return chain.proceed(request);
    }
}
</code></pre>

<p>This is not working properly. In server side I am getting only the last added header (in the above example I am getting only Securitykey missing "Userid" )</p>

<p>Please Help.</p>