add missing enum value

This commit is contained in:
wiaamm
2026-01-06 12:52:13 +02:00
parent 7ce1fba437
commit 59ed1f804a
2 changed files with 6 additions and 4 deletions

View File

@@ -29,9 +29,10 @@ nano.HttpChunkType = {
nano.WebResponseType = { nano.WebResponseType = {
CUSTOM_WEB_RESPONSE = 0, CUSTOM_WEB_RESPONSE = 0,
RESPONSE_CODE_ONLY = 1, CUSTOM_WEB_BLOCK_PAGE_RESPONSE = 1,
REDIRECT_WEB_RESPONSE = 2, RESPONSE_CODE_ONLY = 2,
NO_WEB_RESPONSE = 3, REDIRECT_WEB_RESPONSE = 3,
NO_WEB_RESPONSE = 4,
} }
local ffi = require "ffi" local ffi = require "ffi"
@@ -47,6 +48,7 @@ typedef enum HttpModificationType
typedef enum NanoWebResponseType typedef enum NanoWebResponseType
{ {
CUSTOM_WEB_RESPONSE, CUSTOM_WEB_RESPONSE,
CUSTOM_WEB_BLOCK_PAGE_RESPONSE,
RESPONSE_CODE_ONLY, RESPONSE_CODE_ONLY,
REDIRECT_WEB_RESPONSE, REDIRECT_WEB_RESPONSE,
NO_WEB_RESPONSE NO_WEB_RESPONSE

View File

@@ -3,7 +3,7 @@ version = "1.0.0-1"
source = { source = {
url = "git://github.com/openappsec/attachment.git", url = "git://github.com/openappsec/attachment.git",
tag = "main" tag = "wiaam-fix-enum"
} }
description = { description = {