mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
it is nice to actually send the options back
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user