diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2014-07-25 08:24:03 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2014-07-25 08:24:03 +0200 | 
| commit | aae4e4bf70f17a597b0042910e6c2c050ea927df (patch) | |
| tree | 93918962f01e6924edd91866ae2edd13add9f8f0 /lib/http2.c | |
| parent | 9c1cf966643117368119168465b9ac783b636164 (diff) | |
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
Diffstat (limited to 'lib/http2.c')
| -rw-r--r-- | lib/http2.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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; | 
