Forum Discussion
PeterC_70986
Nimbostratus
Nov 30, 2018Quotation Mark in a Header Insert irule gets changed to a colon
I am using the below irule to insert a response header. when HTTP_RESPONSE { HTTP::header insert "Link: https://www.mysite.com/pages/other/business.html; rel="canonical" }
However when the header is inserted it changes the quotation mark in front of canonical to a colon. So it looks like this: Link: https://www.mysite.com/pages/other/business.html; rel=:canonical"
How do I prevent it from changing the quote to a colon?
1 Reply
- Kevin_Stewart
Employee
Try escaping the quotes.
when HTTP_RESPONSE { HTTP::header insert "Link" "https://www.mysite.com/pages/other/business.html; rel=\"canonical\"" }
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