openbsd-ports/russian/cyrproxy/patches/patch-http_gw_c
2005-12-24 08:20:40 +00:00

30 lines
784 B
Plaintext

$OpenBSD: patch-http_gw_c,v 1.2 2005/12/24 08:20:40 pvalchev Exp $
--- http_gw.c.orig Thu Feb 8 18:33:04 2001
+++ http_gw.c Fri Dec 23 23:45:13 2005
@@ -13,7 +13,7 @@
#include <syslog.h>
#include <stdlib.h>
#include <stdio.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdarg.h>
#include <unistd.h>
#ifdef _AIX
@@ -344,8 +344,6 @@ http_response(int netfd,encoding *enc)
char *p = strstr(buf,"charset=");
if(p)
sprintf(p,"charset=%s\n",enc->clientcharset);
-#if 0 /* commented out. I'm not sure, that we must force charset addition
- for documents, which not contains it! */
else
{
p=strchr(buf,'\n');
@@ -360,7 +358,6 @@ http_response(int netfd,encoding *enc)
strcat(buf,"\n");
}
}
-#endif
n=strlen(buf);
}