Skip to content

Commit

Permalink
Add Pretendo's hard-coded CDN to redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 authored Dec 21, 2023
1 parent 2d05ef8 commit 40c7321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pretendo_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def request(self, flow: http.HTTPFlow) -> None:
if ctx.options.pretendo_host and (
"pretendo.cc" in flow.request.pretty_host
or "pretendo.network" in flow.request.pretty_host
or "pretendo-cdn.b-cdn.net" in flow.request.pretty_host
):
original_host = flow.request.host_header
flow.request.host = ctx.options.pretendo_host
Expand Down

0 comments on commit 40c7321

Please sign in to comment.