summaryrefslogtreecommitdiff
path: root/debian/patches/0115-Add_header.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:09:15 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:09:15 +0200
commitef84a92a429b724586031878dfc0b38c64d55a23 (patch)
tree4fb270e0f1bdd261417fdc06cfb6bf3a58d17023 /debian/patches/0115-Add_header.patch
parent18449d7dd31123e14f8a0d87047f2f85187a156b (diff)
parent613720c29e3613baf3eb56511eab13195f4e8790 (diff)
Merge branch 'release/2.0.4-1'2.0.4-1
Diffstat (limited to 'debian/patches/0115-Add_header.patch')
-rw-r--r--debian/patches/0115-Add_header.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/debian/patches/0115-Add_header.patch b/debian/patches/0115-Add_header.patch
deleted file mode 100644
index 6ce0c15..0000000
--- a/debian/patches/0115-Add_header.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-Description: Add Header Accept
-Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
-Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862004
-Forwarded: https://github.com/Debianguru/MailWebsiteChanges/issues/11
-Last-Update: 2017-05-07
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-Index: trunk/mwc.py
-===================================================================
---- trunk.orig/mwc.py
-+++ trunk/mwc.py
-@@ -91,6 +91,8 @@ def parseSite(site):
- req = urllib.request.Request(uri)
- if 'user-agent' in site:
- req.add_header('User-Agent', site['user-agent'])
-+ if 'accept' in site:
-+ req.add_header('Accept', site['accept'])
- file = urllib.request.urlopen(req)
-
-
-Index: trunk/README.md
-===================================================================
---- trunk.orig/README.md
-+++ trunk/README.md
-@@ -59,7 +59,9 @@ sites = [
- * <b>user-agent</b> (optional)
- Defines the user agent string, e.g.,
- 'user-agent': 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0'
--
-+ * <b>accept</b> (optional)
-+ Defines the accept string, e.g.,
-+ 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
-
- * We collect some XPath/CSS snippets at this place: <a href="https://github.com/Debianguru/MailWebsiteChanges/wiki/snippets">Snippet collection</a> - please feel free to add your own definitions!
-
-Index: trunk/config_template.py
-===================================================================
---- trunk.orig/config_template.py
-+++ trunk/config_template.py
-@@ -12,7 +12,9 @@ sites = [
- 'contentxpath': '//div',
- 'titleregex': '',
- 'contentregex': '',
-- 'encoding': 'utf-8'},
-+ 'encoding': 'utf-8',
-+ 'user-agent': 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0',
-+ 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'},
-
- {'shortname': 'mywebsite2',
- 'uri': 'http://www.mywebsite2.com/info',