Add custom User-Agent: for www.instagram.com so image can be uploaded - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 072ce7911cc40b77f4f978839b26d512d2496429
(DIR) parent c72ae0bddaa420a4a0786a2085dd162c860f7d95
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 16 Jul 2019 23:39:20
Add custom User-Agent: for www.instagram.com so image can be uploaded
Diffstat:
wip/surf-git/patch-config.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff -r c72ae0bddaa4 -r 072ce7911cc4 wip/surf-git/patch-config.h
--- a/wip/surf-git/patch-config.h Tue Jul 02 23:57:38 2019 +0200
+++ b/wip/surf-git/patch-config.h Tue Jul 16 23:39:20 2019 +0200
@@ -1,6 +1,6 @@
--- /dev/null 2019-06-08 18:14:46.479402408 +0200
+++ config.h 2019-06-08 18:14:37.992108174 +0200
-@@ -0,0 +1,226 @@
+@@ -0,0 +1,229 @@
+/* modifier 0 means no modifier */
+static int surfuseragent = 0; /* Append Surf version to default WebKit user agent */
+static char *fulluseragent = ""; /* Or override the whole user agent string */
@@ -57,6 +57,9 @@
+};
+
+static UriParameters uriparams[] = {
++ { "://www\\.instagram\\.com/", {
++ [UserAgent] = { { .v = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1" }, 1 },
++ }, },
+ { "://ilmanifesto\\.it/", {
+ [UserAgent] = { { .v = "Googlebot-News" }, 1 },
+ }, },