Skip to content

Commit 49ee42b

Browse files
committed
Make CreateConnection on Connection protected and overridable for #264
1 parent e7d5821 commit 49ee42b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Nest/Domain/Connection/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private void SetBasicAuthorizationIfNeeded(HttpWebRequest myReq)
145145
}
146146
}
147147

148-
private HttpWebRequest CreateWebRequest(string path, string method)
148+
protected virtual HttpWebRequest CreateWebRequest(string path, string method)
149149
{
150150
var url = this._CreateUriString(path);
151151

src/Nest/Domain/Connection/ConnectionSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public ConnectionSettings SetGlobalQueryStringParameters(NameValueCollection que
7676
return this;
7777
}
7878

79-
8079
/// <summary>
8180
/// Timeout in milliseconds when the .NET webrquest should abort the request, note that you can set this to a high value here,
8281
/// and specify the timeout in various calls on Elasticsearch's side.

0 commit comments

Comments
 (0)