| 177 | } |
| 178 | |
| 179 | static void send_strbuf(struct strbuf *hdr, |
| 180 | const char *type, struct strbuf *buf) |
| 181 | { |
| 182 | hdr_int(hdr, content_length, buf->len); |
| 183 | hdr_str(hdr, content_type, type); |
| 184 | end_headers(hdr); |
| 185 | write_or_die(1, buf->buf, buf->len); |
| 186 | } |
| 187 | |
| 188 | static void send_local_file(struct strbuf *hdr, const char *the_type, |
| 189 | const char *name) |
no test coverage detected