mirror of
https://github.com/openappsec/attachment.git
synced 2025-09-30 03:34:27 +03:00
Update istio (#34)
* update istio * update istio * fixing istio * fix library name * fix library name * fix missing defenition of advanced-model * fix append * fix wrong name * fix pvc issue * fix config.go file * fix config.go file * fix config.go file * fix config.go file --------- Co-authored-by: Daniel Eisenberg <danielei@checkpoint.com>
This commit is contained in:
8
attachments/nano_attachment/nano_attachment.c
Normal file → Executable file
8
attachments/nano_attachment/nano_attachment.c
Normal file → Executable file
@@ -502,6 +502,14 @@ GetBlockPage(NanoAttachment *attachment, HttpSessionData *session_data, Attachme
|
||||
};
|
||||
}
|
||||
|
||||
uint16_t
|
||||
GetResponseCode(AttachmentVerdictResponse *response)
|
||||
{
|
||||
WebResponseData *web_response_data = response->web_response_data;
|
||||
CustomResponseData *custom_response_data;
|
||||
custom_response_data = (CustomResponseData *) web_response_data->data;
|
||||
return custom_response_data->response_code;
|
||||
}
|
||||
|
||||
RedirectPageData
|
||||
GetRedirectPage(NanoAttachment *attachment, HttpSessionData *session_data, AttachmentVerdictResponse *response)
|
||||
|
8
attachments/nano_attachment/nano_attachment_io.c
Normal file → Executable file
8
attachments/nano_attachment/nano_attachment_io.c
Normal file → Executable file
@@ -604,6 +604,14 @@ handle_custom_web_response(
|
||||
return;
|
||||
}
|
||||
|
||||
if (title.len == 0 || body.len == 0) {
|
||||
custom_response_data->response_code = web_response_data->response_data.custom_response_data.response_code;
|
||||
new_response_data->web_response_type = RESPONSE_CODE_ONLY;
|
||||
new_response_data->data = custom_response_data;
|
||||
*ctx_response_data = new_response_data;
|
||||
return;
|
||||
}
|
||||
|
||||
// Setting custom web response title's data.
|
||||
if (title.len > 0) {
|
||||
title.data = (u_char *)web_response_data->response_data.custom_response_data.data;
|
||||
|
Reference in New Issue
Block a user