Mercurial > pidgin
comparison src/protocols/simple/simple.c @ 13272:0bfc9b72b9ce
[gaim-migrate @ 15638]
fix for double Proxy-Authorization Header by Anibal Avelar
committer: Tailor Script <tailor@pidgin.im>
| author | Thomas Butter <tbutter> |
|---|---|
| date | Mon, 13 Feb 2006 07:34:59 +0000 |
| parents | 33bef17125c2 |
| children | 263c2db78f77 |
comparison
equal
deleted
inserted
replaced
| 13271:aaeb6ea63c56 | 13272:0bfc9b72b9ce |
|---|---|
| 1180 | 1180 |
| 1181 ptmp = sipmsg_find_header(msg, "Proxy-Authenticate"); | 1181 ptmp = sipmsg_find_header(msg, "Proxy-Authenticate"); |
| 1182 | 1182 |
| 1183 fill_auth(sip, ptmp, &sip->proxy); | 1183 fill_auth(sip, ptmp, &sip->proxy); |
| 1184 auth = auth_header(sip, &sip->proxy, trans->msg->method, trans->msg->target); | 1184 auth = auth_header(sip, &sip->proxy, trans->msg->method, trans->msg->target); |
| 1185 sipmsg_remove_header(msg, "Proxy-Authorization"); | 1185 sipmsg_remove_header(trans->msg, "Proxy-Authorization"); |
| 1186 sipmsg_add_header(trans->msg, "Proxy-Authorization", auth); | 1186 sipmsg_add_header(trans->msg, "Proxy-Authorization", auth); |
| 1187 g_free(auth); | 1187 g_free(auth); |
| 1188 resend = sipmsg_to_string(trans->msg); | 1188 resend = sipmsg_to_string(trans->msg); |
| 1189 /* resend request */ | 1189 /* resend request */ |
| 1190 sendout_pkt(sip->gc, resend); | 1190 sendout_pkt(sip->gc, resend); |
