commit 2cae90010f474c816488b71df9c5bb398a519df7
parent 12fae6e17385a9b69115dd97844f7d90d4dbf2c9
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 2 Aug 2026 21:59:32 +0200
split on \r, \n or \r\n, ensures we do not keep a \r by accident
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c
@@ -352,9 +352,9 @@ pending_webhooks_cb (void *cls,
{
char *header_copy = GNUNET_strdup (header);
- for (const char *tok = strtok (header_copy, "\n");
+ for (const char *tok = strtok (header_copy, "\r\n");
NULL != tok;
- tok = strtok (NULL, "\n"))
+ tok = strtok (NULL, "\r\n"))
{
// extract all Key: value from 'header_copy'!
job_headers = curl_slist_append (job_headers,