fd = VBE_GetFd(sp->backend, &fd_token);
assert(fd != -1);
- http_BuildSbuf(0, w->sb, sp->http);
+ http_BuildSbuf(1, w->sb, sp->http);
i = write(fd, sbuf_data(w->sb), sbuf_len(w->sb));
assert(i == sbuf_len(w->sb));
event_base_loop(w->eb, 0);
http_Dissect(sp2.http, sp2.fd, 2);
- http_BuildSbuf(1, w->sb, sp2.http);
+ http_BuildSbuf(2, w->sb, sp2.http);
i = write(sp->fd, sbuf_data(w->sb), sbuf_len(w->sb));
assert(i == sbuf_len(w->sb));
fd = VBE_GetFd(sp->backend, &fd_token);
assert(fd != -1);
- http_BuildSbuf(0, w->sb, sp->http);
+ http_BuildSbuf(0, w->sb, sp->http); /* XXX: 0 ?? */
i = write(fd, sbuf_data(w->sb), sbuf_len(w->sb));
assert(i == sbuf_len(w->sb));
assert(__LINE__ == 0);