[Pidgin] #4422: SIP Publish Etag/If-Match

Pidgin trac at pidgin.im
Mon Dec 17 16:57:35 EST 2007


#4422: SIP Publish Etag/If-Match
-----------------------+----------------------------------------------------
  Reporter:  hawkinsw  |       Owner:  seanegan
      Type:  patch     |      Status:  new     
  Priority:  minor     |   Milestone:          
 Component:  SIMPLE    |     Version:  2.3.0   
Resolution:            |    Keywords:  publish 
   Pending:  0         |  
-----------------------+----------------------------------------------------
Comment (by QuLogic):

 You're still leaking `add_headers` in `send_closed_publish`, though. I'd
 suggest something like this:
 {{{
 gchar *add_headers = NULL;
 if (sip->publish_etag)
     add_headers = g_strdup_printf("SIP-If-Match: %s\r\n"
                                   "Expires: 600\r\nEvent: presence\r\n"
                                   "Content-Type:
 application/pidf+xml\r\n",
                                   sip->publish_etag);
 else
     add_headers = g_strdup("Expires: 600\r\nEvent: presence\r\n"
                            "Content-Type: application/pidf+xml\r\n");
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/4422#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list