Skip to content

Commit 14e6915

Browse files
author
Hans Viken Duedal
committed
Relax Base64 Decoding
Strict decoding breaks Base64 MIME encodings, which place newlines after a certain number of spaces. MIME encoding is commonly used by Java Clients.
1 parent 3a45042 commit 14e6915

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/request_message_translator.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ RequestMessageTranslator::RequestMessageTranslator(
5858
writer_pipeline_(&proto_writer_),
5959
output_delimiter_(output_delimiter),
6060
finished_(false) {
61+
// Relax Base64 decoding to support RFC 2045 Base64
62+
proto_writer_.set_use_strict_base64_decoding(false);
63+
6164
// Create a RequestWeaver if we have variable bindings to weave
6265
if (!request_info.variable_bindings.empty()) {
6366
request_weaver_.reset(new RequestWeaver(

0 commit comments

Comments
 (0)