fixed missing - on Content-Type
This commit is contained in:
1 parent
2b686e267c
commit
7453b8e50a
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user