summaryrefslogtreecommitdiff
path: root/src/mhd/mhd_parsing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-09 14:07:13 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-09 14:07:13 +0200
commitf009e0bd1261fe5b73ae7294faee3ac3e20ce802 (patch)
tree2f537fcbd8163628f2fd56a37715ccde87d1b5e5 /src/mhd/mhd_parsing.c
parent85f6c8cdcce509d504e7dd8606beab2f45e7dab8 (diff)
downloadexchange-f009e0bd1261fe5b73ae7294faee3ac3e20ce802.tar.gz
exchange-f009e0bd1261fe5b73ae7294faee3ac3e20ce802.tar.bz2
exchange-f009e0bd1261fe5b73ae7294faee3ac3e20ce802.zip
-make content-length optional again
Diffstat (limited to 'src/mhd/mhd_parsing.c')
-rw-r--r--src/mhd/mhd_parsing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mhd/mhd_parsing.c b/src/mhd/mhd_parsing.c
index 9e3cb5714..b1f8417e4 100644
--- a/src/mhd/mhd_parsing.c
+++ b/src/mhd/mhd_parsing.c
@@ -365,6 +365,9 @@ TALER_MHD_check_content_length_ (struct MHD_Connection *connection,
MHD_HTTP_HEADER_CONTENT_LENGTH);
if (NULL == cl)
{
+ return GNUNET_OK;
+#if 0
+ /* wallet currently doesn't always send content-length! */
GNUNET_break_op (0);
return (MHD_YES ==
TALER_MHD_reply_with_error (connection,
@@ -373,6 +376,7 @@ TALER_MHD_check_content_length_ (struct MHD_Connection *connection,
MHD_HTTP_HEADER_CONTENT_LENGTH))
? GNUNET_NO
: GNUNET_SYSERR;
+#endif
}
if (1 != sscanf (cl,
"%llu%c",