Merge pull request #171 from happyday517/dev

fix: UploadingContext相关参数并没有传入的问题
This commit is contained in:
Wendal Chen 2019-06-18 20:44:19 -05:00 committed by GitHub
commit d9bbd80868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,11 @@ public class WhaleFilterStarter implements WebFilterFace {
params.put("http.method_override", conf.get(PROP_HTTP_METHOD_OVERRIDE));
}
if (conf.has(PROP_HIDDEN_UPLOAD_ENABLE)) {
params.put("upload.enable", conf.get(PROP_HIDDEN_UPLOAD_ENABLE));
conf.keys().stream()
.filter(key -> key.startsWith("nutz.mvc.whale.upload"))
.forEach(key -> {
params.put(key.substring(15), conf.get(key));
});
}
return params;
}