/*
- * $Id: http.c,v 1.15 2007-03-29 09:16:34 marc Exp $
+ * $Id: http.c,v 1.17 2007-03-30 02:45:07 quinn Exp $
*/
#include <stdio.h>
}
}
+#ifdef GAGA
// If this hostname contains our proxy host as a prefix, replace with myurl
static char *sub_hostname(struct http_channel *c, char *buf)
{
}
return buf;
}
+#endif
// Handles I/O on a client connection to a backend web server (proxy mode)
static void proxy_io(IOCHAN pi, int event)
htbuf->buf[res] = '\0';
htbuf->offset = 0;
htbuf->len = res;
+#ifdef GAGA
if (pc->first_response) // Check if this is a redirect
{
int len;
}
pc->first_response = 0;
}
+#endif
// Write any remaining payload
if (htbuf->len - htbuf->offset > 0)
http_buf_enqueue(&hc->oqueue, htbuf);