mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-24 10:56:23 +01:00
SOP: Fix mapping of encryption format
This commit is contained in:
parent
9497cbaeb1
commit
c31fd7d5e0
1 changed files with 1 additions and 2 deletions
|
@ -125,10 +125,9 @@ public class EncryptImpl implements Encrypt {
|
||||||
private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) {
|
private static StreamEncoding encryptAsToStreamEncoding(EncryptAs encryptAs) {
|
||||||
switch (encryptAs) {
|
switch (encryptAs) {
|
||||||
case Binary:
|
case Binary:
|
||||||
|
case MIME:
|
||||||
return StreamEncoding.BINARY;
|
return StreamEncoding.BINARY;
|
||||||
case Text:
|
case Text:
|
||||||
return StreamEncoding.TEXT;
|
|
||||||
case MIME:
|
|
||||||
return StreamEncoding.UTF8;
|
return StreamEncoding.UTF8;
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);
|
throw new IllegalArgumentException("Invalid value encountered: " + encryptAs);
|
||||||
|
|
Loading…
Reference in a new issue