Skip to content

Commit

Permalink
fix: more url encoding trickery for image proxy (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Apr 29, 2023
1 parent 3f16f18 commit 84058ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ private String cleanUrl(final String url) {
.replace("https:/", "https://")
.replace("http:/", "http://")
.replace(":///", "://")
.replace("%7F", "\u007F"); // I hate everything about this, but it fixes #1187
.replace("%7F", "\u007F")
.replace("%20", " "); // I hate everything about this, but it fixes #1187
}

private boolean validContentType(final ResponseEntity<byte[]> response) {
Expand Down

0 comments on commit 84058ec

Please sign in to comment.