* [MASTER][1.46][PATCH] WGET: update user-agent
@ 2021-01-20 9:50 cpriouzeau
2021-01-20 10:53 ` [bitbake-devel] " Ross Burton
0 siblings, 1 reply; 2+ messages in thread
From: cpriouzeau @ 2021-01-20 9:50 UTC (permalink / raw)
To: bitbake-devel; +Cc: Christophe PRIOUZEAU
With the usage of enterprise proxy, the user-agent defined are
too old and refused by proxy configuration.
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
---
lib/bb/fetch2/wget.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index e6d9f528..98c6635d 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -297,7 +297,7 @@ class Wget(FetchMethod):
# Some servers (FusionForge, as used on Alioth) require that the
# optional Accept header is set.
r.add_header("Accept", "*/*")
- r.add_header("User-Agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/9.10 (karmic) Firefox/3.6.12")
+ r.add_header("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0")
def add_basic_auth(login_str, request):
'''Adds Basic auth to http request, pass in login:password as string'''
import base64
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [bitbake-devel] [MASTER][1.46][PATCH] WGET: update user-agent
2021-01-20 9:50 [MASTER][1.46][PATCH] WGET: update user-agent cpriouzeau
@ 2021-01-20 10:53 ` Ross Burton
0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2021-01-20 10:53 UTC (permalink / raw)
To: christophe.priouzeau; +Cc: bitbake-devel
There are two instances of the User-Agent in that code. A quick patch
I came up with during the call yesterday is as follows:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mut&id=16b98ea3e0d01f1c71073d135301c6db315b0ac8
If you can come up with a patch that incorporates the fixes in mine,
feel free to post it with your authorship as there's no way I can test
it.
Ross
On Wed, 20 Jan 2021 at 09:50, cpriouzeau via lists.openembedded.org
<christophe.priouzeau=st.com@lists.openembedded.org> wrote:
>
> With the usage of enterprise proxy, the user-agent defined are
> too old and refused by proxy configuration.
>
> Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
> ---
> lib/bb/fetch2/wget.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
> index e6d9f528..98c6635d 100644
> --- a/lib/bb/fetch2/wget.py
> +++ b/lib/bb/fetch2/wget.py
> @@ -297,7 +297,7 @@ class Wget(FetchMethod):
> # Some servers (FusionForge, as used on Alioth) require that the
> # optional Accept header is set.
> r.add_header("Accept", "*/*")
> - r.add_header("User-Agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/9.10 (karmic) Firefox/3.6.12")
> + r.add_header("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0")
> def add_basic_auth(login_str, request):
> '''Adds Basic auth to http request, pass in login:password as string'''
> import base64
> --
> 2.17.1
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-20 10:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 9:50 [MASTER][1.46][PATCH] WGET: update user-agent cpriouzeau
2021-01-20 10:53 ` [bitbake-devel] " Ross Burton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.