- Add patches from Debian release 3.0.3-2-2
[privoxy.git] / debian / patches / 17_502_no_such_domain.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 17_502_no_such_domain.dpatch by Roland Rosenfeld <roland@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Changes the 404 HTTP status code of the "No such Domain" template
6 ## DP: to 502 Bad Gateway, which seems to be more correct according to 
7 ## DP: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
8
9 @DPATCH@
10 diff -urNad privoxy~/templates/no-such-domain privoxy/templates/no-such-domain
11 --- privoxy~/templates/no-such-domain
12 +++ privoxy/templates/no-such-domain
13 @@ -79,7 +79,7 @@
14  <html>
15  
16  <head>
17 -  <title>404 - No such Domain (Privoxy@@my-hostname@)</title>
18 +  <title>502 - Bad Gateway (Privoxy@@my-hostname@)</title>
19    <meta http-equiv="Content-Style-Type" content="text/css">
20    <meta http-equiv="Content-Script-Type" content="text/javascript">
21    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
22 @@ -92,7 +92,7 @@
23    <table cellpadding="20" cellspacing="10" border="0" width="100%">
24      <tr>
25        <td class="status">
26 -        404
27 +        502
28        </td>     
29        <td class="title" style="width: 100%">
30