How does Mashery handle the 'Server' header in the response in TIBCO Mashery?
book
Article ID: KB0073423
calendar_today
Updated On:
Products
TIBCO Cloud API Management
Description
Currently Mashery sets the Server header to "Mashery Proxy" if the backend is not returning any such header.
Issue/Introduction
This article provides inputs on how Mashery or Mashery Local handle or set the 'Server' header in the response.
Environment
All Supported Platforms
Resolution
If the Backend cannot add this header one could consider using "Inject Static Header" connector: http://docs.mashery.com/connectorsguide/GUID-3D623094-7401-4B94-B014-65931378C7FA.html
For a backend that does not return Server header, Call Transformation can be configured as seen in the attached screenshot.
Please see: vijayTest_StaticHeaderInjector.txt for sample transactions with the connector in play.
As seen here: - the Server Header was overwritten, when backend sent the response - the Server Header was not overwritten, when Mashery sent the response(internal error)
Note: All files are in the attached archive: serverHeader-via-mashery.zip
Attachments
How does Mashery handle the 'Server' header in the response in TIBCO Mashery?
get_app