diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-04 07:22:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-04 07:22:53 +0000 |
commit | e3c075c72d6b7b64c869b4cb0c0ff128b1d084cd (patch) | |
tree | dcb810bb5aa6a853672c6d8e749df508a2ae4e53 /src/libtipidee/tipidee_response_header_writeall_G.c | |
parent | 691c9878f41d6646af38f417b23dfc72644a8c96 (diff) | |
download | tipidee-e3c075c72d6b7b64c869b4cb0c0ff128b1d084cd.tar.xz |
Use wallclock time for Date header in responses
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_response_header_writeall_G.c')
-rw-r--r-- | src/libtipidee/tipidee_response_header_writeall_G.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_response_header_writeall_G.c b/src/libtipidee/tipidee_response_header_writeall_G.c new file mode 100644 index 0000000..b448395 --- /dev/null +++ b/src/libtipidee/tipidee_response_header_writeall_G.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <skalibs/tai.h> + +#include <tipidee/response.h> + +size_t tipidee_response_header_writeall_G (buffer *b, tipidee_response_header const *rhdr, uint32_t rhdrn, uint32_t options) +{ + tain wstamp ; + tain_wallclock_read(&wstamp) ; + return tipidee_response_header_writeall(b, rhdr, rhdrn, options, &wstamp) ; +} |