This commit is contained in:
blankie 2022-10-08 22:28:22 +07:00
parent ff18bda668
commit 91a3d7255f
Signed by: blankie
GPG key ID: CC15FC822C7F61F5

View file

@ -31,7 +31,7 @@
(define (html-from-url image-url) (define (html-from-url image-url)
(log-outgoing image-url) (log-outgoing image-url)
(define dest-res (easy:head image-url #:timeouts timeouts)) (define dest-res (easy:head image-url #:timeouts timeouts))
(define content-type (response-headers-ref dest-res "Content-Type")) (define content-type (easy:response-headers-ref dest-res "Content-Type"))
(cond (cond
[(eq? content-type #f) ""] [(eq? content-type #f) ""]
[(regexp-match? #rx"^image/" content-type) [(regexp-match? #rx"^image/" content-type)