public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
041fdde
)
htget: dump rest of lines buffer before main content xfer
author
Brett Gordon
<beretta42@gmail.com>
Sat, 11 Nov 2017 20:26:44 +0000
(15:26 -0500)
committer
Brett Gordon
<beretta42@gmail.com>
Sat, 11 Nov 2017 20:26:44 +0000
(15:26 -0500)
Applications/netd/htget.c
patch
|
blob
|
history
diff --git
a/Applications/netd/htget.c
b/Applications/netd/htget.c
index
14aa19a
..
6e40a43
100644
(file)
--- a/
Applications/netd/htget.c
+++ b/
Applications/netd/htget.c
@@
-185,6
+185,10
@@
int main(int argc, char *argv[])
/* FIXME: if we saw a Transfer-Encoding: chunked" we need to do this
bit differently */
if (code == 200) {
+ if (write(of, readp, bufend - readp) < 0){
+ perror("write");
+ exit(1);
+ }
while((len = xread()) > 0) {
if (write(of, buf, len) != len) {
perror("write");