FreeBSD Bugzilla – Attachment 228853 Details for
Bug 259291
net-im/purple-hangouts: add the patch preventing the 429 HTTP-errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add the 429-patch
purple-hangouts.diff (text/plain), 1.82 KB, created by
Mikhail Teterin
on 2021-10-20 03:07:06 UTC
(
hide
)
Description:
Add the 429-patch
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
2021-10-20 03:07:06 UTC
Size:
1.82 KB
patch
obsolete
>diff --git a/net-im/purple-hangouts/Makefile b/net-im/purple-hangouts/Makefile >index d5aaaed477..30668fc104 100644 >--- a/net-im/purple-hangouts/Makefile >+++ b/net-im/purple-hangouts/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= purple-hangouts > PORTVERSION= 20190607 >+PORTREVISION= 1 > CATEGORIES= net-im > MASTER_SITES= https://bitbucket.org/EionRobb/${PORTNAME}/get/ > # Commit tag. Must be changed according with PORTVERSION. >@@ -19,6 +20,7 @@ LIB_DEPENDS= libpurple.so:net-im/libpurple \ > > USES= gmake gnome pkgconfig zip > USE_GNOME= glib20 >+PATCH_STRIP= -p1 --ignore-whitespace > > WRKSRC= ${WRKDIR}/EionRobb-${PORTNAME}-${DISTNAME} > >diff --git a/net-im/purple-hangouts/files/patch-429 b/net-im/purple-hangouts/files/patch-429 >new file mode 100644 >index 0000000000..fa9a62cfc0 >--- /dev/null >+++ b/net-im/purple-hangouts/files/patch-429 >@@ -0,0 +1,26 @@ >+From 55b9f01d040b240b794700f44d9c21a6cb51251e Mon Sep 17 00:00:00 2001 >+From: Eion Robb <eion@robbmob.com> >+Date: Wed, 30 Jun 2021 09:53:47 +1200 >+Subject: [PATCH] Fix for 429 errors >+ >+Fixes issue #222 >+--- >+ hangouts_auth.c | 5 +++++ >+ 1 file changed, 5 insertions(+) >+ >+diff --git a/hangouts_auth.c b/hangouts_auth.c >+index 025f4f9..d988c3a 100644 >+--- a/hangouts_auth.c >++++ b/hangouts_auth.c >+@@ -258,6 +258,11 @@ hangouts_auth_get_session_cookies_got_cb(PurpleHttpConnection *http_conn, Purple >+ return; >+ } >+ >++ purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PSID", NULL); >++ purple_http_cookie_jar_set(ha->cookie_jar, "__Host-3PLSID", NULL); >++ purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PAPISID", NULL); >++ purple_http_cookie_jar_set(ha->cookie_jar, "__Host-GAPS", NULL); >++ >+ //Restore the last_event_timestamp before it gets overridden by new events >+ last_event_timestamp = purple_account_get_int(ha->account, "last_event_timestamp_high", 0); >+ if (last_event_timestamp != 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259291
: 228853