forked from cadence/breezewiki
easy:
This commit is contained in:
parent
ff18bda668
commit
91a3d7255f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue