Solutions

x_header CPL Substitution does not work with set()

Solutions ID:    KB5067
Version:    3.0
Status:    Published
Published date:    04/15/2012
Updated:    11/18/2013
 

Problem Description

1. When you apply the following CPL, you will see that the value for My-Header is not inserted into the LOL2 HTTP Response Header :

define action my_rewrite
        set(response.x_header.LOL1, "test $(response.header.Cache-Control) test" )
        set(response.x_header.LOL2, "test $(response.x_header.My-Header) test")
end

<Proxy>
    action.my_rewrite(yes)

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Fri, 10 Feb 2012 06:22:31 GMT
Content-Type: image/png
Expires: Fri, 10 Feb 2012 07:22:31 GMT
Last-Modified: Fri, 06 Jan 2012 01:23:39 GMT
Cache-Control: max-age=0, s-maxage=3600, must-revalidate
X-My-Header: MyHeader
LOL1: test max-age=0,s-maxage=3600,must-revalidate test        <<<<< The value for the normal header is set
LOL2: test  test                                               <<<<< The value for the x_header is not set
Connection: close
Age: 0


2. The same problem affects request.x_header too

Resolution

This defect has been addressed in :

- SG 6.2.9.1 and newer SG 6.2.x versions

- SG 6.3.3.1 and newer SG 6.3.x versions

SG 6.4.x and newer SG 6.x versions are not affected by this.


Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
 
 
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.
 
 

Your response will be used to improve our document content.

Ask a Question