Upgrade to HttpClient5 5.2.1

Closes gh-34086
This commit is contained in:
Andy Wilkinson
2023-02-06 13:18:24 +00:00
parent 850d239b5c
commit f595b46bd3
8 changed files with 38 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -184,7 +184,7 @@ class InitializrService {
try {
HttpHost host = HttpHost.create(url);
request.addHeader("User-Agent", "SpringBootCli/" + getClass().getPackage().getImplementationVersion());
return getHttp().execute(host, request);
return getHttp().executeOpen(host, request, null);
}
catch (IOException ex) {
throw new ReportableException(