- char lstr[20];
- sprintf(lstr, "%d", (*p)->u.HTTP_Response->content_len);
- z_HTTP_header_add(o,
- &(*p)->u.HTTP_Response->headers,
- "Content-Length", lstr);
+ char lstr[60];
+ sprintf(lstr, "Content-Length: %d\r\n",
+ (*p)->u.HTTP_Response->content_len);
+ odr_write(o, (unsigned char *) lstr, strlen(lstr));