- Add HEAD support to finish_http_response.
[privoxy.git] / filters.c
index 36eccf4..be4cb65 100644 (file)
--- a/filters.c
+++ b/filters.c
@@ -1,4 +1,4 @@
-const char filters_rcs[] = "$Id: filters.c,v 1.76 2007/01/01 19:36:37 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.77 2007/01/12 15:36:44 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/filters.c,v $
@@ -40,6 +40,10 @@ const char filters_rcs[] = "$Id: filters.c,v 1.76 2007/01/01 19:36:37 fabiankeil
  *
  * Revisions   :
  *    $Log: filters.c,v $
+ *    Revision 1.77  2007/01/12 15:36:44  fabiankeil
+ *    Mark *csp as immutable for is_untrusted_url()
+ *    and is_imageurl(). Closes FR 1237736.
+ *
  *    Revision 1.76  2007/01/01 19:36:37  fabiankeil
  *    Integrate a modified version of Wil Mahan's
  *    zlib patch (PR #895531).
@@ -1014,7 +1018,7 @@ struct http_response *block_url(struct client_state *csp)
       }
    }
 
-   return finish_http_response(rsp);
+   return finish_http_response(csp, rsp);
 
 }
 
@@ -1161,7 +1165,7 @@ struct http_response *trust_url(struct client_state *csp)
       return cgi_error_memory();
    }
 
-   return finish_http_response(rsp);
+   return finish_http_response(csp, rsp);
 }
 #endif /* def FEATURE_TRUST */
 
@@ -1463,7 +1467,7 @@ struct http_response *redirect_url(struct client_state *csp)
             return cgi_error_memory();
          }
          freez(new_url);
-         return finish_http_response(rsp);
+         return finish_http_response(csp, rsp);
       }
    }
 
@@ -2259,7 +2263,7 @@ struct http_response *direct_response(struct client_state *csp)
             }
 
             rsp->is_static = 1;
-            return(finish_http_response(rsp));
+            return(finish_http_response(csp, rsp));
          }
       }
    }