From aae4e4bf70f17a597b0042910e6c2c050ea927df Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Jul 2014 08:24:03 +0200 Subject: base64: added Curl_base64url_encode() This is now used by the http2 code. It has two different symbols at the end of the base64 table to make the output "url safe". Bug: https://github.com/tatsuhiro-t/nghttp2/issues/62 --- lib/http2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/http2.c') diff --git a/lib/http2.c b/lib/http2.c index fcc583dc9..00eb9d9b2 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -504,8 +504,8 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req, } conn->proto.httpc.binlen = binlen; - result = Curl_base64_encode(conn->data, (const char *)binsettings, binlen, - &base64, &blen); + result = Curl_base64url_encode(conn->data, (const char *)binsettings, binlen, + &base64, &blen); if(result) return result; -- cgit v1.2.3