|
|
|
@ -25,7 +25,7 @@ public class EmptyInterceptor implements Interceptor {
|
|
|
|
|
public void noEmpty(EmptyInterface annotation, Invocation inv) {
|
|
|
|
|
Controller con = inv.getController();
|
|
|
|
|
String header = con.getHeader("Content-Type"); //取出head头
|
|
|
|
|
if (header != null && header.indexOf("multipart/form-data") != -1) { //判断是否是form-data
|
|
|
|
|
if (header != null && header.contains("multipart/form-data")) { //判断是否是form-data
|
|
|
|
|
inv.invoke();
|
|
|
|
|
}
|
|
|
|
|
String[] value = annotation.value();
|
|
|
|
|