summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-20 23:52:53 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-20 23:52:53 +0100
commit4c5614c0b0a0b9d4cb5feb6057bbcda142e62b77 (patch)
treed58c6e46e4bbba661778ed49ef66f133d3c38fa0 /src/lib
parentc7acb447868cd319e27cb5c22dd7efe491e407ac (diff)
downloadmerchant-4c5614c0b0a0b9d4cb5feb6057bbcda142e62b77.tar.gz
merchant-4c5614c0b0a0b9d4cb5feb6057bbcda142e62b77.tar.bz2
merchant-4c5614c0b0a0b9d4cb5feb6057bbcda142e62b77.zip
-do not escape inside API, expect client to do it
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_post_instance_auth.c8
-rw-r--r--src/lib/merchant_api_post_instances.c8
2 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/merchant_api_post_instance_auth.c b/src/lib/merchant_api_post_instance_auth.c
index e2936c5c..a5a2a480 100644
--- a/src/lib/merchant_api_post_instance_auth.c
+++ b/src/lib/merchant_api_post_instance_auth.c
@@ -174,8 +174,6 @@ TALER_MERCHANT_instance_auth_post (
}
else
{
- char *enc;
-
if (0 != strncasecmp (RFC_8959_PREFIX,
auth_token,
strlen (RFC_8959_PREFIX)))
@@ -187,15 +185,11 @@ TALER_MERCHANT_instance_auth_post (
GNUNET_free (iaph);
return NULL;
}
- (void) GNUNET_STRINGS_urlencode (auth_token,
- strlen (auth_token),
- &enc);
req_obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_string ("method",
"token"),
GNUNET_JSON_pack_string ("token",
- enc));
- GNUNET_free (enc);
+ auth_token));
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Requesting URL '%s'\n",
diff --git a/src/lib/merchant_api_post_instances.c b/src/lib/merchant_api_post_instances.c
index 19104aa5..0fa7063f 100644
--- a/src/lib/merchant_api_post_instances.c
+++ b/src/lib/merchant_api_post_instances.c
@@ -182,8 +182,6 @@ TALER_MERCHANT_instances_post (
if (NULL != auth_token)
{
- char *enc;
-
if (0 != strncasecmp (RFC_8959_PREFIX,
auth_token,
strlen (RFC_8959_PREFIX)))
@@ -193,15 +191,11 @@ TALER_MERCHANT_instances_post (
RFC_8959_PREFIX);
return NULL;
}
- (void) GNUNET_STRINGS_urlencode (auth_token,
- strlen (auth_token),
- &enc);
auth_obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_string ("method",
"token"),
GNUNET_JSON_pack_string ("token",
- enc));
- GNUNET_free (enc);
+ auth_token));
}
else
{