Adding "Accept" header to urllib type request (#180)
commitdfdf4895ec47f3bc4de4fa3d47ed9f10a4ad75f6
authorIvan Morett <ivanmorett@meta.com>
Mon, 24 Oct 2022 13:51:28 +0000 (24 06:51 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 24 Oct 2022 13:51:28 +0000 (24 06:51 -0700)
treea4b98a83633207eb1c59318f70ea219949ccef66
parent5284b635b50e979b21411ef6e6b7be063d3a58c0
Adding "Accept" header to urllib type request (#180)

Summary:
link: https://github.com/facebookincubator/katran/pull/180
The urlretrieve method originally doesn't add this header, and in katran we noticed that the libmnl wasn't fetched anymore. After investigation, the request is blocked with error 403 because this header is missing. Adding it to the request.

Reviewed By: avasylev

Differential Revision: D40386108

fbshipit-source-id: a9b4b937ca12a04bc701d3f945681914151c0110
build/fbcode_builder/getdeps/fetcher.py