Skip to content

Commit 732c35d

Browse files
committed
fix encrypt response parsing
Fix #434
1 parent 785fba9 commit 732c35d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/webapp/app/registry/encryption/encryption.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export class EncryptionService {
88
constructor(private http: HttpClient) {}
99

1010
encrypt(textToEncrypt: string): Observable<string> {
11-
return this.http.post<string>('config/encrypt', textToEncrypt).pipe(map((response: string) => '{cipher}' + response));
11+
return this.http.post('config/encrypt', textToEncrypt, { responseType: 'text' }).pipe(map((response: string) => '{cipher}' + response));
1212
}
1313

1414
decrypt(textToDecrypt: string): Observable<string> {
15-
return this.http.post<string>('config/decrypt', textToDecrypt);
15+
return this.http.post('config/decrypt', textToDecrypt, { responseType: 'text' });
1616
}
1717
}

webpack/webpack.dev.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = (options) => webpackMerge(commonConfig({ env: ENV }), {
2121
context: [
2222
'/api',
2323
'/services',
24+
'/config',
2425
'/management',
2526
'/swagger-resources',
2627
'/v2/api-docs',

0 commit comments

Comments
 (0)