aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc.cpp b/rpc.cpp
index cd69a3777c..bf522d0fa3 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -774,6 +774,10 @@ string EncodeBase64(string s)
string result(bptr->data, bptr->length-1);
BIO_free_all(b64);
+ // Remove newlines every 64 characters
+ result.erase(std::remove(result.begin(), result.end(), '\n'), result.end());
+ result.erase(std::remove(result.begin(), result.end(), '\r'), result.end());
+
return result;
}