main
黄海 7 months ago
parent 4b5bd17c44
commit e29afd17fb

@ -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();

Loading…
Cancel
Save