pull: Add http2=false remote config option
This seems to work around https://github.com/ostreedev/ostree/issues/1362 Though I'm not entirely sure why yet. But at least with this it'll be easier for people to work around things locally. Closes: #1368 Approved by: jlebon
This commit is contained in:
1 parent
3f4506f088
commit
7173ac76bc
4 files changed
+26
-5
No files matched your search
@@ -2690,6 +2690,15 @@ _ostree_repo_remote_new_fetcher (OstreeRepo *self,
|
||||
if (gzip)
|
||||
fetcher_flags |= OSTREE_FETCHER_FLAGS_TRANSFER_GZIP;
|
||||
|
||||
{ gboolean http2 = TRUE;
|
||||
if (!ostree_repo_get_remote_boolean_option (self, remote_name,
|
||||
"http2", TRUE,
|
||||
&http2, error))
|
||||
goto out;
|
||||
if (!http2)
|
||||
fetcher_flags |= OSTREE_FETCHER_FLAGS_DISABLE_HTTP2;
|
||||
}
|
||||
|
||||
fetcher = _ostree_fetcher_new (self->tmp_dir_fd, remote_name, fetcher_flags);
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user