X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6f9272bdabcda81425ec1aaecf26a160535d4749..7285933f38997aa06e220f23f9a9f54ca3fb41e9:/net/http/httpd.c?ds=sidebyside diff --git a/net/http/httpd.c b/net/http/httpd.c index e8cdd53..ed08b0c 100644 --- a/net/http/httpd.c +++ b/net/http/httpd.c @@ -44,7 +44,7 @@ struct http_state { u32_t left; - const unsigned char *file; + const char *file; u8_t retries; }; @@ -84,6 +84,8 @@ send_data(struct tcp_pcb *pcb, struct http_state *hs) len = hs->left; LWIP_ASSERT((len == hs->left), "hs->left did not fit into u16_t!"); } + + outputf("send_data trying %d bytes", len); do { err = tcp_write(pcb, hs->file, len, 0);