cancel
Showing results for 
Search instead for 
Did you mean: 
kitanaka
Level 7

WSG ICAP server response with "X-Media-Type" header.

Jump to solution

Hello,

I want to make my WSG (ICAP server) inserting "X-Media-Type" in ICAP response message like below. It seems that it does not insert "X-Media-Type" by default.

ICAP/1.0 204 No modification needed

ISTag: "xxxxxxxxx-x.xx.xxx-xxxxxxxxx"

X-Media-Type: xxxxxx

X-Media-Type: xxxxxx

X-Media-Type: xxxxxx

<snip>

It seems it is configurable by reading this post :

But I can not find a way where/how to modify my configuration.

Could someone tell me how to change the behavior ?

0 Kudos
1 Solution

Accepted Solutions
McAfee Employee

Re: WSG ICAP server response with "X-Media-Type" header.

Jump to solution

Hi Kianaka,

You can use the event Header.ICAP.Response.Add("X-Media-Type",List.OfMediaType.ToString(MediaType.EnsuredTypes)) as shown in the ruleset in the post you mentioned.

On the event step of rule creation click "Add > Add Event" then search for Header.ICAP.Response.Add

Best Regards,

Jon

0 Kudos
2 Replies
McAfee Employee

Re: WSG ICAP server response with "X-Media-Type" header.

Jump to solution

Hi Kianaka,

You can use the event Header.ICAP.Response.Add("X-Media-Type",List.OfMediaType.ToString(MediaType.EnsuredTypes)) as shown in the ruleset in the post you mentioned.

On the event step of rule creation click "Add > Add Event" then search for Header.ICAP.Response.Add

Best Regards,

Jon

0 Kudos
kitanaka
Level 7

Re: WSG ICAP server response with "X-Media-Type" header.

Jump to solution

Thank you for the anwer, Jon

0 Kudos