Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/wangxy/hyp-web/commit/be765dda3ca9f0deeed290dc0bce8a2cfa40a504?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
2 additions and
1 deletions
@ -29,6 +29,7 @@ import java.io.File;
import java.io.IOException ;
import java.io.IOException ;
import java.io.InputStream ;
import java.io.InputStream ;
import java.io.OutputStream ;
import java.io.OutputStream ;
import java.nio.charset.StandardCharsets ;
import java.nio.file.Files ;
import java.nio.file.Files ;
import java.util.List ;
import java.util.List ;
import java.util.Objects ;
import java.util.Objects ;
@ -99,7 +100,7 @@ public class FileRelationController extends BaseController {
public void fileView ( @PathVariable String fileId , HttpServletResponse response ) throws IOException {
public void fileView ( @PathVariable String fileId , HttpServletResponse response ) throws IOException {
String filePath = fileRelationManager . getFilePath ( fileId ) ;
String filePath = fileRelationManager . getFilePath ( fileId ) ;
String fileName = fileRelationManager . getRealName ( fileId ) ;
String fileName = fileRelationManager . getRealName ( fileId ) ;
String encodedFileName = new String ( fileName . getBytes ( "UTF-8" ) , "ISO-8859-1" ) ;
String encodedFileName = new String ( fileName . getBytes ( StandardCharsets . UTF_8 ) , StandardCharsets . ISO_8859_1 ) ;
InputStream in = null ;
InputStream in = null ;
OutputStream out = null ;
OutputStream out = null ;
try {
try {