remove nano_ffi changes

This commit is contained in:
wiaamm
2025-12-09 17:36:49 +02:00
parent 0338b1a63d
commit 2b09ebcc41

View File

@@ -91,11 +91,6 @@ function nano.handle_custom_response(session_data, response)
return kong.response.exit(200, "Request allowed due to attachment unavailability") return kong.response.exit(200, "Request allowed due to attachment unavailability")
end end
if not session_data or not response then
kong.log.err("Invalid session_data or response in handle_custom_response")
return kong.response.exit(500, "Internal Server Error")
end
local response_type = nano_attachment.get_web_response_type(attachment, session_data, response) local response_type = nano_attachment.get_web_response_type(attachment, session_data, response)
if response_type == nano.WebResponseType.RESPONSE_CODE_ONLY then if response_type == nano.WebResponseType.RESPONSE_CODE_ONLY then
@@ -269,12 +264,6 @@ end
function nano.handleHeaders(headers) function nano.handleHeaders(headers)
local header_data = nano_attachment.allocHttpHeaders() local header_data = nano_attachment.allocHttpHeaders()
if not header_data then
kong.log.err("Failed to allocate HTTP headers")
return nil
end
table.insert(nano.allocate_headers, header_data) table.insert(nano.allocate_headers, header_data)
local index = 0 local index = 0