File: rewrites.filter

package info (click to toggle)
privoxy 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,488 kB
  • sloc: ansic: 33,393; perl: 4,813; sh: 3,940; makefile: 146; awk: 18; xml: 14
file content (16 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CLIENT-HEADER-FILTER: https-to-http Downgrade protocol to http
s@^(\w+) (/\d-downgrade-to-http)-(\d+\.\d+\.\d+\.\d+\:\d+)@$1 http://$3$2@i

CLIENT-HEADER-FILTER: truncate-path Removes '-remove-this' from the path
s@(/\d)-remove-this (HTTP/1.1)@$1 $2@i

CLIENT-HEADER-FILTER: rewrite-host Replaces the host with the one specified in the path
s@GET /(\d)-(\d+\.\d+\.\d+\.\d+\:\d+) (HTTP/1.1)@GET https://$2/$1 $3@i

# Results in Conditional jump or move depends on uninitialised value(s)?
CLIENT-HEADER-FILTER: non-matching-rewriter Does not actually match
s@/-@@

CLIENT-HEADER-FILTER: invalid-http-version Rewrites the request line with an invalid HTTP version
s@HTTP/1.1@HTTP/9000@