up
svn: r4417
This commit is contained in:
parent
5bbbddac7d
commit
71b92e97d0
|
@ -226,6 +226,8 @@
|
||||||
(let skip-preamble ()
|
(let skip-preamble ()
|
||||||
(define line (read-bytes-line in 'return-linefeed))
|
(define line (read-bytes-line in 'return-linefeed))
|
||||||
(cond
|
(cond
|
||||||
|
[(eof-object? line)
|
||||||
|
(network-error 'read-mime-multipart "Port prematurely closed.")]
|
||||||
[(bytes=? line start-boundary)
|
[(bytes=? line start-boundary)
|
||||||
(let read-parts ()
|
(let read-parts ()
|
||||||
(define headers (read-headers in))
|
(define headers (read-headers in))
|
||||||
|
@ -239,6 +241,8 @@
|
||||||
headers contents)))])
|
headers contents)))])
|
||||||
(define line (read-bytes-line in 'return-linefeed))
|
(define line (read-bytes-line in 'return-linefeed))
|
||||||
(cond
|
(cond
|
||||||
|
[(eof-object? line)
|
||||||
|
(network-error 'read-mime-multipart "Port prematurely closed.")]
|
||||||
[(bytes=? line start-boundary)
|
[(bytes=? line start-boundary)
|
||||||
(more-k empty)]
|
(more-k empty)]
|
||||||
[(bytes=? line end-boundary)
|
[(bytes=? line end-boundary)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user