it is nice to actually send the options back

This commit is contained in:
UbitUmarov
2020-04-27 17:40:55 +01:00
parent 89dee19060
commit b5067baa4a

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;
}