|
@@ -135,13 +135,12 @@ public class ObjectBasicController {
|
|
|
|
|
|
|
|
@ApiOperation("获取对象的元数据")
|
|
@ApiOperation("获取对象的元数据")
|
|
|
@RequestMapping(value = "/**", method = RequestMethod.HEAD)
|
|
@RequestMapping(value = "/**", method = RequestMethod.HEAD)
|
|
|
- public String headObject() throws IOException {
|
|
|
|
|
|
|
+ public void headObject() throws IOException {
|
|
|
String uri = ServletUtil.getRequest().getRequestURI();
|
|
String uri = ServletUtil.getRequest().getRequestURI();
|
|
|
String uri1 = URLDecoder.decode(uri, StandardCharsets.UTF_8);
|
|
String uri1 = URLDecoder.decode(uri, StandardCharsets.UTF_8);
|
|
|
|
|
|
|
|
String objectName = uri1.replaceFirst("/", "");
|
|
String objectName = uri1.replaceFirst("/", "");
|
|
|
getObjectService.headObject(objectName);
|
|
getObjectService.headObject(objectName);
|
|
|
- return WebResult.success();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("获取对象")
|
|
@ApiOperation("获取对象")
|