net/http-client: fix http-conn-live?
result
Merge to v6.0
original commit: 1f6453de89
This commit is contained in:
parent
784ab3a94d
commit
f9487b6168
|
@ -88,6 +88,22 @@
|
|||
#:headers empty
|
||||
#:data #f)
|
||||
raw ereq estatus eheaders econtent))
|
||||
#,(syntax/loc stx
|
||||
(test-e the-port
|
||||
(let ([c (hc:http-conn-open "localhost"
|
||||
#:port the-port
|
||||
#:ssl? #f)])
|
||||
(check-equal? #t (hc:http-conn-live? c))
|
||||
(hc:http-conn-send! c
|
||||
"/"
|
||||
#:method "GET"
|
||||
#:headers empty
|
||||
#:data #f)
|
||||
(begin0
|
||||
(hc:http-conn-recv! c
|
||||
#:close? #t)
|
||||
(check-equal? #f (hc:http-conn-live? c))))
|
||||
raw ereq estatus eheaders econtent))
|
||||
#,(syntax/loc stx
|
||||
(test-e the-port
|
||||
(u:http-sendrecv/url
|
||||
|
|
Loading…
Reference in New Issue
Block a user