Skip to content

Commit 153271e

Browse files
committed
Merge branch 'master' of github.com:elasticsearch/elasticsearch-net
2 parents 749d179 + 4135628 commit 153271e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/Elasticsearch.Net/Connection/Transport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private Uri GetNextBaseUri<T>(TransportRequestState<T> requestState, out int ini
256256
private ElasticsearchResponse<T> RetryRequest<T>(TransportRequestState<T> requestState, Uri baseUri, int retried, Exception e = null)
257257
{
258258
var maxRetries = this.GetMaximumRetries(requestState.RequestConfiguration);
259-
var exceptionMessage = MaxRetryExceptionMessage.F(requestState.Method, requestState.Path.IsNullOrEmpty() ? "/" : "", retried);
259+
var exceptionMessage = MaxRetryExceptionMessage.F(requestState.Method, requestState.Path.IsNullOrEmpty() ? "/" : requestState.Path, retried);
260260

261261
this._connectionPool.MarkDead(baseUri, this.ConfigurationValues.DeadTimeout, this.ConfigurationValues.MaxDeadTimeout);
262262

src/Nest/Domain/Analysis/Tokenizer/UaxEmailUrlTokenizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class UaxEmailUrlTokenizer : TokenizerBase
1010
{
1111
public UaxEmailUrlTokenizer()
1212
{
13-
Type = "uax_url_email ";
13+
Type = "uax_url_email";
1414
}
1515

1616
/// <summary>
@@ -19,4 +19,4 @@ public UaxEmailUrlTokenizer()
1919
[JsonProperty("max_token_length")]
2020
public int? MaximumTokenLength { get; set; }
2121
}
22-
}
22+
}

src/Nest/ElasticClient.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ D descriptor
9494
where R : BaseResponse
9595
{
9696
var config = descriptor.RequestConfiguration as IRequestConfiguration;
97-
var statusCodeAllowed = config == null
98-
|| (config.AllowedStatusCodes.HasAny()
99-
&& config.AllowedStatusCodes.Any(i=>i==c.HttpStatusCode));
97+
var statusCodeAllowed = config != null ? config.AllowedStatusCodes.Any(i => i == c.HttpStatusCode) : false;
10098

10199
if (c.Success || statusCodeAllowed)
102100
{

0 commit comments

Comments
 (0)