This commit is contained in:
kimchy 2010-07-19 17:51:42 +03:00
parent 5f0470d68b
commit 6f2c0f4e55
1 changed files with 1 additions and 1 deletions

View File

@ -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 {