diff --git a/connect/community/community.service.ts b/connect/community/community.service.ts index 3359fbbd..c24f501b 100644 --- a/connect/community/community.service.ts +++ b/connect/community/community.service.ts @@ -16,10 +16,15 @@ export class CommunityService { } updateCommunity(url: string, community:any) { + let headers = new Headers({'Content-Type': 'application/json'}); + let options = new RequestOptions({headers: headers}); + let body = JSON.stringify(community); - return this.http.post(url, body) - .map(res => res.json()) + console.log(body); + + return this.http.post(url, body, options) + /*.map(res => res.json())*/ .do(request => console.log("Insert Response:"+request.status)); }