forked from cadence/breezewiki
ok
This commit is contained in:
parent
6d2f5904fe
commit
881b95bde3
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 (easy: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