mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-16 17:37:34 +02:00
Fixing open-net-io to include socket in list of results.
This commit is contained in:
parent
c4edcc8d78
commit
4a86e133a9
2 changed files with 4 additions and 3 deletions
|
@ -42,7 +42,8 @@
|
||||||
(cond-expand
|
(cond-expand
|
||||||
(threads (set-file-descriptor-flags! sock open/non-block))
|
(threads (set-file-descriptor-flags! sock open/non-block))
|
||||||
(else #f))
|
(else #f))
|
||||||
(list (open-input-file-descriptor sock #t)
|
(list sock
|
||||||
|
(open-input-file-descriptor sock #t)
|
||||||
(open-output-file-descriptor sock #t)))))))))
|
(open-output-file-descriptor sock #t)))))))))
|
||||||
|
|
||||||
;;> Convenience wrapper around @scheme{open-net-io}, opens
|
;;> Convenience wrapper around @scheme{open-net-io}, opens
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
host
|
host
|
||||||
(or (uri-port uri)
|
(or (uri-port uri)
|
||||||
(if (eq? 'https (uri-scheme uri)) 443 80))))
|
(if (eq? 'https (uri-scheme uri)) 443 80))))
|
||||||
(in (car io))
|
(in (cadr io))
|
||||||
(out (car (cdr io))))
|
(out (car (cddr io))))
|
||||||
(display "GET " out)
|
(display "GET " out)
|
||||||
(display (or (uri-path uri) "/") out)
|
(display (or (uri-path uri) "/") out)
|
||||||
(display " HTTP/1.0\r\n" out)
|
(display " HTTP/1.0\r\n" out)
|
||||||
|
|
Loading…
Add table
Reference in a new issue