diff --git a/src/app/service/babylon/building-basic-infos.service.ts b/src/app/service/babylon/building-basic-infos.service.ts index 5562801..ab0cd05 100644 --- a/src/app/service/babylon/building-basic-infos.service.ts +++ b/src/app/service/babylon/building-basic-infos.service.ts @@ -38,9 +38,11 @@ export class BuildingBasicInfosService { postBuildingBasicInfos(name: string, data: any): Observable { let params = { name: name, - // content: JSON.stringify(data), } - return this.http.post(this.baseUrl + this.c_post, JSON.stringify(data), { params }) + let headers = { + "Content-Type": "application/json" + } + return this.http.post(this.baseUrl + this.c_post, `'${JSON.stringify(data)}'`, { headers,params }) .pipe( catchError((err) => this.handleError(err)) );