Forum Discussion
Annsar_Akhtar
Nimbostratus
Feb 19, 2014irule to modify the content-type response header
Hi
I have a question relating to modifying a response header for a Content-Type of Image/jpeg, the problem we have is the Content-Type Response header is being returned from the application as C...
Richard__Harlan
Feb 19, 2014Historic F5 Account
You control statement is just checking to see if the header exists not the value of the header. You can look at something like this
when HTTP_RESPONSE {
if { [HTTP::header "Content-Type" ] equals "Image/jpeg" } {
HTTP::header replace "Content-Type" "image/jpeg"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects