23:a2c8fc23c90e | 24:1a7853a4257e |
---|---|
66 /* server error */ | 66 /* server error */ |
67 printf("server error\n"); | 67 printf("server error\n"); |
68 return REQ_ABORTED; | 68 return REQ_ABORTED; |
69 } | 69 } |
70 | 70 |
71 /* TODO: bug with multi reads */ | 71 /* TODO: bug with multiple reads */ |
72 int r = 0; | 72 int r = 0; |
73 char *xb = xml_body; | 73 char *xb = xml_body; |
74 size_t xl = xml_len; | 74 size_t xl = xml_len; |
75 while((r = netbuf_getbytes(sn->inbuf, xb, xl)) != NETBUF_EOF) { | 75 while((r = netbuf_getbytes(sn->inbuf, xb, xl)) != NETBUF_EOF) { |
76 xb += r; | 76 xb += r; |