You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a webapi controller returns void, aspnet make it return a 204 instead of 200. iOS/Safari treat this differently and prompt the user for a document download blocking off the website the instant the API method is called from ajax.
We should create a rule that forces all webapi controller methods to return data and not a void.
The text was updated successfully, but these errors were encountered:
Only little concern about this the referrence that we need to add to "find" inherited members from ApiController/Controller. Should it be a new package beside Agoda.Analyzers.Web? The other parts looks easy to add I think.
When a webapi controller returns void, aspnet make it return a 204 instead of 200. iOS/Safari treat this differently and prompt the user for a document download blocking off the website the instant the API method is called from ajax.
We should create a rule that forces all webapi controller methods to return data and not a void.
The text was updated successfully, but these errors were encountered: