Properly declare charset for text messages.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Olle Johansson 17 years ago
parent bb386c84e7
commit f07454f25d

@ -8002,7 +8002,7 @@ static int transmit_response_with_auth(struct sip_pvt *p, const char *msg, const
static int add_text(struct sip_request *req, const char *text)
{
/* XXX Convert \n's to \r\n's XXX */
add_header(req, "Content-Type", "text/plain");
add_header(req, "Content-Type", "text/plain;charset=UTF-8");
add_header_contentLength(req, strlen(text));
add_line(req, text);
return 0;

Loading…
Cancel
Save