spelling
This commit is contained in:
parent
5f0470d68b
commit
6f2c0f4e55
|
@ -109,7 +109,7 @@ public class HttpServer extends AbstractLifecycleComponent<HttpServer> {
|
||||||
// if nothing was dispatched by the rest request, send either error or default handling per method
|
// if nothing was dispatched by the rest request, send either error or default handling per method
|
||||||
if (!restController.dispatchRequest(request, channel)) {
|
if (!restController.dispatchRequest(request, channel)) {
|
||||||
if (request.method() == RestRequest.Method.OPTIONS) {
|
if (request.method() == RestRequest.Method.OPTIONS) {
|
||||||
// when we have OPTIONS request, simply send OK by default (with the Access Control Origin header which gest automatically added)
|
// when we have OPTIONS request, simply send OK by default (with the Access Control Origin header which gets automatically added)
|
||||||
StringRestResponse response = new StringRestResponse(OK);
|
StringRestResponse response = new StringRestResponse(OK);
|
||||||
channel.sendResponse(response);
|
channel.sendResponse(response);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue