diff --git a/Libraries/MicroHTTPKit/Source/HKRouter.m b/Libraries/MicroHTTPKit/Source/HKRouter.m index 19523e9..b174068 100644 --- a/Libraries/MicroHTTPKit/Source/HKRouter.m +++ b/Libraries/MicroHTTPKit/Source/HKRouter.m @@ -77,7 +77,7 @@ - (void)registerRoute:(HKRoute *)route withCORSHandler:(HKHandlerBlock)handler { HKRoute *corsRoute; path = [route path]; - corsRoute = [HKRoute routeWithPath:path method:HKHTTPMethodPOST handler:handler]; + corsRoute = [HKRoute routeWithPath:path method:HKHTTPMethodOptions handler:handler]; [_routes addObject:route]; [_routes addObject:corsRoute];