Added missing CORS headers for 415 responses
This commit is contained in:
parent
081f91653e
commit
9d7c6ddf29
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ namespace Mist {
|
||||||
if (!handler.size()){
|
if (!handler.size()){
|
||||||
H.Clean();
|
H.Clean();
|
||||||
H.SetHeader("Server", "MistServer/" PACKAGE_VERSION);
|
H.SetHeader("Server", "MistServer/" PACKAGE_VERSION);
|
||||||
|
H.setCORSHeaders();
|
||||||
H.SetBody("<!DOCTYPE html><html><head><title>Unsupported Media Type</title></head><body><h1>Unsupported Media Type</h1>The server isn't quite sure what you wanted to receive from it.</body></html>");
|
H.SetBody("<!DOCTYPE html><html><head><title>Unsupported Media Type</title></head><body><h1>Unsupported Media Type</h1>The server isn't quite sure what you wanted to receive from it.</body></html>");
|
||||||
H.SendResponse("415", "Unsupported Media Type", myConn);
|
H.SendResponse("415", "Unsupported Media Type", myConn);
|
||||||
myConn.close();
|
myConn.close();
|
||||||
|
|
Loading…
Add table
Reference in a new issue