strict proxy false in test as requested by blankie

This commit is contained in:
Cadence Ember 2022-10-10 22:54:05 +13:00
parent 7a8a1cd40f
commit 4968dc2a49
Signed by untrusted user: cadence
GPG key ID: BC1C2C61CF521B17

View file

@ -146,12 +146,12 @@
(check-equal? (get-media-html "https://static.wikia.nocookie.net/b" "audio/mp3") (check-equal? (get-media-html "https://static.wikia.nocookie.net/b" "audio/mp3")
`(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fb") `(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fb")
(controls))))) (controls)))))
(parameterize ([(config-parameter 'strict_proxy) "no"]) (parameterize ([(config-parameter 'strict_proxy) "false"])
(check-equal? (get-media-html "https://static.wikia.nocookie.net/c" "application/ogg") (check-equal? (get-media-html "https://static.wikia.nocookie.net/c" "application/ogg")
`(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fc") `(audio (@ (src "https://static.wikia.nocookie.net/c")
(controls)))) (controls))))
(check-equal? (get-media-html "https://static.wikia.nocookie.net/d" "video/mp4") (check-equal? (get-media-html "https://static.wikia.nocookie.net/d" "video/mp4")
`(video (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fd") `(video (@ (src "https://static.wikia.nocookie.net/d")
(controls))))) (controls)))))
(check-equal? (get-media-html "https://example.com" "who knows") `"") (check-equal? (get-media-html "https://example.com" "who knows") `"")
(check-equal? (get-media-html "https://example.com" #f) `"")) (check-equal? (get-media-html "https://example.com" #f) `""))