Request original = chain.request();
FormBody formBody = (FormBody) original.body();
String name = formBody.name(0);
String value = formBody.value(0);
FormBody formBody2 = new FormBody.Builder()
.add(name, value)
.add("source", "android").build();
//请求定制:添加请求头
Request request = original.newBuilder()
.url(original.url())
.post(formBody2).build();
return chain.proceed(request);
FormBody formBody = (FormBody) original.body();
String name = formBody.name(0);
String value = formBody.value(0);
FormBody formBody2 = new FormBody.Builder()
.add(name, value)
.add("source", "android").build();
//请求定制:添加请求头
Request request = original.newBuilder()
.url(original.url())
.post(formBody2).build();
return chain.proceed(request);