summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index 6b5580d..b91b872 100644
--- a/src/http.c
+++ b/src/http.c
@@ -102,7 +102,7 @@ int _read(struct mansession *s, struct message *m) {
BuildHTTPHeader(header);
pthread_mutex_lock(&s->lock);
s->inputcomplete = 1;
- write(s->fd, header, strlen(header));
+ ast_carefulwrite(s->fd, header, strlen(header), s->writetimeout);
pthread_mutex_unlock(&s->lock);
debugmsg("header: %s", header);