1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 17_502_no_such_domain.dpatch by Roland Rosenfeld <roland@debian.org>
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
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
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">
23 <table cellpadding="20" cellspacing="10" border="0" width="100%">
29 <td class="title" style="width: 100%">