|
|
| version 1.92, 2019/11/15 11:09:51 | version 1.94, 2019/11/24 23:46:22 |
|---|---|
| Line 474 static void _digest(Request& r, MethodPa | Line 474 static void _digest(Request& r, MethodPa |
| r.write(*new String(hex_string((unsigned char *)digest.str, digest.length, false))); | r.write(*new String(hex_string((unsigned char *)digest.str, digest.length, false))); |
| } | } |
| if(format == F_BASE64){ | if(format == F_BASE64){ |
| r.write(*new String(pa_base64_encode(digest.str, digest.length))); | r.write(*new String(pa_base64_encode(digest.str, digest.length, Base64Options(false /*no wrap*/)))); |
| } | } |
| } | } |
| Line 637 static void _convert(Request& r, MethodP | Line 637 static void _convert(Request& r, MethodP |
| // core, using log since log2 is not present in FreeBSD < 8.X | // core, using log since log2 is not present in FreeBSD < 8.X |
| Array<char> remainders((size_t)round(data.length * log2(base_from) / log2(base_to)) + 1); | Array<char> remainders((size_t)round(data.length * log(base_from) / log(base_to)) + 1); |
| do { | do { |
| int carry = 0; | int carry = 0; |