Skip to content

Commit 454784c

Browse files
committed
Merge tag '1.1.2'
1.1.2
2 parents fab9eec + 659560b commit 454784c

File tree

34 files changed

+241
-67
lines changed

34 files changed

+241
-67
lines changed

build/Elasticsearch.Net.Connection.HttpClient.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Elasticsearch.Net.Connection.HttpClient</id>
5-
<version>1.1.1</version>
5+
<version>1.1.2</version>
66
<title>Elasticsearch.Net.Connection.HttpClient - IConnection implementation that uses Http</title>
77
<authors>Elasticsearch Inc. and contributors</authors>
88
<owners>Elasticsearch Inc.</owners>
@@ -13,7 +13,7 @@
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<description>An IConnection implementation that uses System.Net.Http.HttpClient to talk with elasticsearch</description>
1515
<dependencies>
16-
<dependency id="Elasticsearch.Net" version="1.1.1"/>
16+
<dependency id="Elasticsearch.Net" version="1.1.2"/>
1717
</dependencies>
1818
<tags>elasticsearch elastic search lucene thrift nest</tags>
1919
</metadata>

build/Elasticsearch.Net.Connection.Thrift.nuspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Elasticsearch.Net.Connection.Thrift</id>
5-
<version>1.1.1</version>
5+
<version>1.1.2</version>
66
<title>Elasticsearch.Net.Connection.Thrift - Thrift support for Elasticsearch.Net</title>
77
<authors>Elasticsearch Inc. and contributors</authors>
88
<owners>Elasticsearch Inc.</owners>
@@ -13,8 +13,7 @@
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<description>An IConnection implementation that utilizes Apache Thrift to talk with elasticsearch</description>
1515
<dependencies>
16-
<dependency id="Elasticsearch.Net" version="1.1.1"/>
17-
<dependency id="NetReflector" />
16+
<dependency id="Elasticsearch.Net" version="1.1.2"/>
1817
</dependencies>
1918
<tags>elasticsearch elastic search lucene thrift nest</tags>
2019
</metadata>

build/Elasticsearch.Net.JsonNET.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Elasticsearch.Net.JsonNET</id>
5-
<version>1.1.1</version>
5+
<version>1.1.2</version>
66
<title>Elasticsearch.Net.JsonNET - Json.NET serializer for the low level elasticsearch client</title>
77
<authors>Elasticsearch Inc. and contributors</authors>
88
<owners>Elasticsearch Inc.</owners>
@@ -13,7 +13,7 @@
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<description>This package is only useful if you use the low level client ONLY and do not use NEST but would like to use JSON.NET as your serializer</description>
1515
<dependencies>
16-
<dependency id="Elasticsearch.Net" version="1.1.1"/>
16+
<dependency id="Elasticsearch.Net" version="1.1.2"/>
1717
</dependencies>
1818
<tags>elasticsearch elastic search lucene thrift nest</tags>
1919
</metadata>

build/Elasticsearch.Net.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Elasticsearch.Net</id>
5-
<version>1.1.1</version>
5+
<version>1.1.2</version>
66
<title>Elasticsearch.Net - official low level elasticsearch client</title>
77
<authors>Elasticsearch Inc. and contributors</authors>
88
<owners>Elasticsearch Inc.</owners>

build/NEST.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>NEST</id>
5-
<version>1.1.1</version>
5+
<version>1.1.2</version>
66
<title>NEST - Elasticsearch Client</title>
77
<authors>Elasticsearch Inc. and contributors</authors>
88
<owners>Elasticsearch Inc.</owners>
@@ -13,7 +13,7 @@
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<description>Elasticsearch client, strongly typed interface to Elasticsearch. Fluent request builder, mapped responses and powerful query dsl. Uses and exposes Elasticsearch.Net</description>
1515
<dependencies>
16-
<dependency id="Elasticsearch.Net" version="1.1.1"/>
16+
<dependency id="Elasticsearch.Net" version="1.1.2"/>
1717
<dependency id="Newtonsoft.Json" version="6.0.1" />
1818
</dependencies>
1919
<tags>elasticsearch elastic search lucene nest</tags>

src/CodeGeneration/CodeGeneration.LowLevelClient/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[assembly: AssemblyCompanyAttribute("Elasticsearch")]
88
[assembly: AssemblyConfigurationAttribute("Release")]
99
[assembly: AssemblyVersionAttribute("1.0.0")]
10-
[assembly: AssemblyFileVersionAttribute("1.1.1")]
11-
[assembly: AssemblyInformationalVersionAttribute("1.1.1")]
10+
[assembly: AssemblyFileVersionAttribute("1.1.2")]
11+
[assembly: AssemblyInformationalVersionAttribute("1.1.2")]
1212
namespace System {
1313
internal static class AssemblyVersionInformation {
1414
internal const string Version = "1.0.0";

src/CodeGeneration/CodeGeneration.YamlTestsRunner/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[assembly: AssemblyCompanyAttribute("Elasticsearch")]
88
[assembly: AssemblyConfigurationAttribute("Release")]
99
[assembly: AssemblyVersionAttribute("1.0.0")]
10-
[assembly: AssemblyFileVersionAttribute("1.1.1")]
11-
[assembly: AssemblyInformationalVersionAttribute("1.1.1")]
10+
[assembly: AssemblyFileVersionAttribute("1.1.2")]
11+
[assembly: AssemblyInformationalVersionAttribute("1.1.2")]
1212
namespace System {
1313
internal static class AssemblyVersionInformation {
1414
internal const string Version = "1.0.0";

src/Connections/Elasticsearch.Net.Connection.HttpClient/HttpClientConnection.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public HttpClientConnection(IConnectionConfigurationValues settings, HttpClientH
3838

3939
var innerHandler = handler ?? new WebRequestHandler();
4040

41-
if (settings.EnableCompressedResponses)
42-
innerHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
43-
4441
if (innerHandler.SupportsProxy && !string.IsNullOrWhiteSpace(_settings.ProxyAddress))
4542
{
4643
innerHandler.Proxy = new WebProxy(_settings.ProxyAddress)
@@ -56,6 +53,12 @@ public HttpClientConnection(IConnectionConfigurationValues settings, HttpClientH
5653
{
5754
Timeout = TimeSpan.FromMilliseconds(_settings.Timeout)
5855
};
56+
if (settings.EnableCompressedResponses && innerHandler.SupportsAutomaticDecompression)
57+
{
58+
innerHandler.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
59+
Client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
60+
Client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("deflate"));
61+
}
5962

6063
}
6164

@@ -126,7 +129,6 @@ public async Task<ElasticsearchResponse<Stream>> DoRequest(HttpMethod method, Ur
126129
else if (!string.IsNullOrWhiteSpace(DefaultContentType))
127130
request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(DefaultContentType));
128131

129-
130132
if (!string.IsNullOrEmpty(uri.UserInfo))
131133
{
132134
request.Headers.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes(uri.UserInfo)));
@@ -141,7 +143,7 @@ public async Task<ElasticsearchResponse<Stream>> DoRequest(HttpMethod method, Ur
141143

142144
var response = await Client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead);
143145

144-
if (method == HttpMethod.Head || response.Content == null || !response.Content.Headers.ContentLength.HasValue || response.Content.Headers.ContentLength.Value <= 0)
146+
if (method == HttpMethod.Head || response.Content == null)
145147
{
146148
return ElasticsearchResponse<Stream>.Create(_settings, (int)response.StatusCode, method.ToString().ToLowerInvariant(), uri.ToString(), data);
147149
}

src/Connections/Elasticsearch.Net.Connection.HttpClient/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[assembly: AssemblyCompanyAttribute("Elasticsearch")]
88
[assembly: AssemblyConfigurationAttribute("Release")]
99
[assembly: AssemblyVersionAttribute("1.0.0")]
10-
[assembly: AssemblyFileVersionAttribute("1.1.1")]
11-
[assembly: AssemblyInformationalVersionAttribute("1.1.1")]
10+
[assembly: AssemblyFileVersionAttribute("1.1.2")]
11+
[assembly: AssemblyInformationalVersionAttribute("1.1.2")]
1212
namespace System {
1313
internal static class AssemblyVersionInformation {
1414
internal const string Version = "1.0.0";

src/Connections/Elasticsearch.Net.Connection.Thrift/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[assembly: AssemblyCompanyAttribute("Elasticsearch")]
88
[assembly: AssemblyConfigurationAttribute("Release")]
99
[assembly: AssemblyVersionAttribute("1.0.0")]
10-
[assembly: AssemblyFileVersionAttribute("1.1.1")]
11-
[assembly: AssemblyInformationalVersionAttribute("1.1.1")]
10+
[assembly: AssemblyFileVersionAttribute("1.1.2")]
11+
[assembly: AssemblyInformationalVersionAttribute("1.1.2")]
1212
namespace System {
1313
internal static class AssemblyVersionInformation {
1414
internal const string Version = "1.0.0";

0 commit comments

Comments
 (0)