I am not able to send emoji in HTTP header though emoji is a plain text.
Error is emoji is not a valid HTTP header field value.
createStatus(user: any, status: any) {
let that = this;
let headers = new Headers();
headers.append('Content-type', 'application/json');
headers.set('token', user.accessToken);
headers.set('facebookId', user.facebookId);
headers.set('operation', 'create');
headers.set('status', status);
return that.http.post(Constants.API_URL + '/post', {}, {headers: headers})
.toPromise()
.then(response => response.json())
.catch(that.handleError);
}
Please tell me what I am doing wrong.