summaryrefslogtreecommitdiffstats
path: root/app/post_test.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-02-01 20:31:49 -0600
committerChristopher Speller <crspeller@gmail.com>2018-02-01 18:31:49 -0800
commit0cd2895456f953ef871e10421361578b6c8d4add (patch)
treebcb900b1cd370b2a732b53f12c829313a0c252d0 /app/post_test.go
parent5d7ae48841d7004c16ec516ec9f86312b9c6cae9 (diff)
downloadchat-0cd2895456f953ef871e10421361578b6c8d4add.tar.gz
chat-0cd2895456f953ef871e10421361578b6c8d4add.tar.bz2
chat-0cd2895456f953ef871e10421361578b6c8d4add.zip
fix image url replacement for blank urls (#8184)
Diffstat (limited to 'app/post_test.go')
-rw-r--r--app/post_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/post_test.go b/app/post_test.go
index 9854bb707..3f3783265 100644
--- a/app/post_test.go
+++ b/app/post_test.go
@@ -211,6 +211,12 @@ func TestImageProxy(t *testing.T) {
ImageURL: "http://mydomain.com/myimage",
ProxiedImageURL: "https://127.0.0.1/x1000/http://mydomain.com/myimage",
},
+ "willnorris/imageproxy_EmptyImageURL": {
+ ProxyType: "willnorris/imageproxy",
+ ProxyURL: "https://127.0.0.1",
+ ImageURL: "",
+ ProxiedImageURL: "",
+ },
"willnorris/imageproxy_WithSigning": {
ProxyType: "willnorris/imageproxy",
ProxyURL: "https://127.0.0.1",