Skip to content

Commit

Permalink
resolves #444 Replace base64 by string.pack (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Mar 15, 2024
1 parent 1a35570 commit d13ca5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def get_diagram_uri(server_url)
end

def encode
Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9))
([Zlib::Deflate.deflate(@text, 9)].pack 'm0').tr '+/', '-_'
end

def save(output_dir_path, kroki_client)
Expand Down

0 comments on commit d13ca5b

Please sign in to comment.