fixed missing - on Content-Type

This commit is contained in:
Gansner Pascal committed 2020-05-08 08:46:18 +02:00
1 parent 2b686e267c
commit 7453b8e50a
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ import { map } from 'rxjs/operators';
export class SoapApiHelper {
public static call<T>(http: HttpClient, url: string, data: object): Observable<T> {
return http.post<T>(url, data, { responseType: 'json', headers: new HttpHeaders({ 'ContentType': 'application/json' }) })
return http.post<T>(url, data, { responseType: 'json', headers: new HttpHeaders({ 'Content-Type': 'application/json' }) })
.pipe(map((response: any) => response.d));
}
}