comparison src/proxy.c @ 2266:0844f0bdf119

[gaim-migrate @ 2276] reverend jim tells me this is more correct committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 11 Sep 2001 00:00:58 +0000
parents b5ad79ad917b
children d2686f757d6e
comparison
equal deleted inserted replaced
2265:2f03cfd21fc2 2266:0844f0bdf119
247 g_free(phb); 247 g_free(phb);
248 return; 248 return;
249 } 249 }
250 fcntl(source, F_SETFL, 0); 250 fcntl(source, F_SETFL, 0);
251 251
252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\n", phb->host, phb->port); 252 g_snprintf(cmd, sizeof(cmd), "CONNECT %s:%d HTTP/1.1\r\nHost = %s:%d\r\n", phb->host, phb->port, phb->host, phb->port);
253 if (send(source, cmd, strlen(cmd), 0) < 0) { 253 if (send(source, cmd, strlen(cmd), 0) < 0) {
254 close(source); 254 close(source);
255 phb->func(phb->data, -1, GAIM_INPUT_READ); 255 phb->func(phb->data, -1, GAIM_INPUT_READ);
256 g_free(phb->host); 256 g_free(phb->host);
257 g_free(phb); 257 g_free(phb);