Skip to content

Commit

Permalink
Merge pull request #703 from Kernel360/635-place-in-course
Browse files Browse the repository at this point in the history
hotfix : http로 시작하는 이미지 파일 주소가 제대로 나오지 않는 문제 해결
  • Loading branch information
minson96 authored Mar 28, 2024
2 parents 7c81a93 + 2b1eeb3 commit 99a890e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public AttachFile(final FileType fileType, final String fileUrl, final String or

public String getFileUrl() {
if(fileUrl.equals("")) return fileUrl;

if(fileUrl.startsWith("http") || fileUrl.startsWith("https")) return fileUrl;
return "http://cdn.yigil.co.kr/" + fileUrl;
}
public static AttachFile of(String fileUrl) {
Expand Down

0 comments on commit 99a890e

Please sign in to comment.