We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab38fe3 commit 4fab69fCopy full SHA for 4fab69f
1 file changed
OptimizelySDK/Event/Dispatcher/WebRequestEventDispatcher35.cs
@@ -77,8 +77,10 @@ private void DispatchWithRetry(LogEvent logEvent)
77
}
78
79
response = (HttpWebResponse)request.GetResponse();
80
+ var statusCode = (int)response.StatusCode;
81
- if (response.StatusCode == HttpStatusCode.OK)
82
+ // Check for any 2xx success status code (200-299)
83
+ if (statusCode >= 200 && statusCode < 300)
84
{
85
using (var responseStream = response.GetResponseStream())
86
using (var responseReader =
0 commit comments