summaryrefslogtreecommitdiff
blob: 432f94eb3e87fba82899115e71f85291b094928f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff -Nru polipo-0.9.11.orig/Makefile polipo-0.9.11/Makefile
--- polipo-0.9.11.orig/Makefile	2006-12-07 21:08:41.000000000 +0200
+++ polipo-0.9.11/Makefile	2007-01-15 13:41:44.000000000 +0200
@@ -82,11 +82,6 @@
 	cp -f localindex.html $(TARGET)$(LOCAL_ROOT)/index.html
 
 install.man: all
-	mkdir -p $(TARGET)$(MANDIR)/man1
-	mkdir -p $(TARGET)$(INFODIR)
-	cp -f polipo.man $(TARGET)$(MANDIR)/man1/polipo.1
-	cp polipo.info $(TARGET)$(INFODIR)/
-	install-info --info-dir=$(INFODIR) polipo.info
 
 
 polipo.info: polipo.texi
diff -Nru polipo-0.9.11.orig/polipo.h polipo-0.9.11/polipo.h
--- polipo-0.9.11.orig/polipo.h	2006-12-07 21:08:41.000000000 +0200
+++ polipo-0.9.11/polipo.h	2007-01-15 13:41:44.000000000 +0200
@@ -62,7 +62,9 @@
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 /* nothing */
 #elif defined(__GNUC__)
+#ifndef inline
 #define inline __inline
+#endif
 #if  (__GNUC__ >= 3)
 #define restrict __restrict
 #else
diff -Nru polipo-0.9.11.orig/server.c polipo-0.9.11/server.c
--- polipo-0.9.11.orig/server.c	2006-12-07 21:08:41.000000000 +0200
+++ polipo-0.9.11/server.c	2007-01-15 13:46:44.000000000 +0200
@@ -1832,10 +1832,10 @@
     } else if(code < 400 && 
               (content_range.from >= 0 || content_range.to >= 0 || 
                content_range.full_length >= 0)) {
-        do_log(L_ERROR, "Range without partial content.\n");
-        httpServerAbort(connection, 1, 502,
-                        internAtom("Range without partial content"));
-        goto fail;
+        do_log(L_WARN, "Range without partial content.\n");
+        content_range.from = -1;
+        content_range.to = -1;
+        content_range.full_length = -1;
     } else if(code != 304 && code != 412) {
         full_len = len;
     }