1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-20 03:12:05 +01:00

SOP: Fix mapping of encryption format

This commit is contained in:
Paul Schaub 2022-03-30 13:14:36 +02:00
parent 9497cbaeb1
commit c31fd7d5e0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -125,10 +125,9 @@ public class EncryptImpl implements Encrypt {
private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) {
switch (encryptAs) {
case Binary:
case MIME:
return StreamEncoding.BINARY;
case Text:
return StreamEncoding.TEXT;
case MIME:
return StreamEncoding.UTF8;
}
throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);