We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Response
1 parent faa138d commit 789eaa7Copy full SHA for 789eaa7
dotnet/src/webdriver/Remote/HttpCommandExecutor.cs
@@ -340,9 +340,8 @@ private Response CreateResponse(HttpResponseInfo responseInfo)
340
341
if (response.Value is string valueString)
342
{
343
-#pragma warning disable CS0618 // Response.Value setter can be used internally
344
- response.Value = valueString.Replace("\r\n", "\n").Replace("\n", Environment.NewLine);
345
-#pragma warning restore CS0618
+ valueString = valueString.Replace("\r\n", "\n").Replace("\n", Environment.NewLine);
+ response = new Response(response.SessionId, valueString, response.Status);
346
}
347
348
return response;
0 commit comments