it is nice to actually send the options back

master
UbitUmarov 2020-04-27 17:40:55 +01:00
parent 89dee19060
commit b5067baa4a
1 changed files with 6 additions and 0 deletions

View File

@ -615,6 +615,12 @@ namespace OpenSim.Framework.Servers.HttpServer
response.AddHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, OPTIONS");
response.AddHeader("Access-Control-Allow-Headers", "Content-Type");
response.StatusCode = (int)HttpStatusCode.OK;
if (request.InputStream != null && request.InputStream.CanRead)
request.InputStream.Dispose();
requestEndTick = Environment.TickCount;
response.Send();
return;
}