aboutsummaryrefslogtreecommitdiffstats
path: root/src/tipideed/regular.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-08-29 21:45:42 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-08-29 21:45:42 +0000
commit1679a62c2cd2cdfed10a0f699cbc29e123dcb4e2 (patch)
treeca69a633bcba73f025da8a51c32f4944fd44e3a4 /src/tipideed/regular.c
parentc548d06d3857295b72c1f993d15480a21935a9a7 (diff)
downloadtipidee-1679a62c2cd2cdfed10a0f699cbc29e123dcb4e2.tar.gz
Add realtime and norealtime options, cork/uncork responses
Diffstat (limited to 'src/tipideed/regular.c')
-rw-r--r--src/tipideed/regular.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tipideed/regular.c b/src/tipideed/regular.c
index 3d82750..0514c8c 100644
--- a/src/tipideed/regular.c
+++ b/src/tipideed/regular.c
@@ -44,7 +44,7 @@ int respond_regular (tipidee_rql const *rql, char const *docroot, char const *fn
tipidee_response_file_G(buffer_1, rql, 200, "OK", st, st->st_size, ra->content_type, g.rhdr, g.rhdrn, 2 | !g.cont) ;
tipidee_response_header_end(buffer_1) ;
tipidee_log_answer(g.logv, rql, 200, st->st_size) ;
- send_file(fd, st->st_size, fn) ;
+ send_file(fd, st->st_size, fn, ra->flags) ;
fd_close(fd) ;
}
return 0 ;
@@ -83,7 +83,7 @@ int respond_partial (tipidee_rql const *rql, char const *docroot, char const *fn
tipidee_response_partial_G(buffer_1, rql, st, start, len, ra->content_type, g.rhdr, g.rhdrn, 2 | !g.cont) ;
tipidee_response_header_end(buffer_1) ;
tipidee_log_answer(g.logv, rql, 206, len) ;
- send_file_range(fd, start, len, fn) ;
+ send_file_range(fd, start, len, fn, ra->flags) ;
fd_close(fd) ;
return 0 ;
}