Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

http header irule needing CR/LF or not

werner_v_113449
Nimbostratus
Nimbostratus

hi ,

 

we use an irule for inserting http header .This irule was introduced couple of years ago and we never had issues. (irule is just adding some headers in http response - see hereunder for irule [ it's shortened version as we use more headers than the one mentioned ] )

 

when HTTP_RESPONSE { HTTP::header insert X-XSS-Protection "1; mode=block" HTTP::header insert X-Content-Type-Options "nosniff" }

 

Application using this loadbalancer setup with irule is upgraded lately and now they are telling us that they are getting errors back when they connect via virtual server (so error on client side) :

 

“The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF.”

 

So looks to me like LF characters are missing when we insert headers . Aren't these inserted when using using or do we need to add them manually ?

 

0 REPLIES 0