ResponseStatusLine protocol violation
Best regards, Sorry for the inconvenience, could you tell me which option I have to enable so that the responses of my api with Autowrapper do not show: ResponseStatusLine protocol violation. I am making the request from a RestClient. when disabling the autowrapper in the api, it doesn't give me an error. Example of the request:
var client = new RestClient("http://localhost:2525/Api/Cart/Customer/GetCountries");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
RestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Method configuration in api:
[AllowAnonymous]
[ProducesResponseType(typeof(List'<'CountriesDto'>'), Status200OK)]
[ProducesResponseType(typeof(ApiResponse), Status400BadRequest)]
[HttpGet("GetCountries")]
public async Task
response.Result = await _userAccessModule.ExecuteQueryAsync(new GetCountriesQuery());
return response;
}
It should be simple, but I don't know how to do it.
Thanks in advance