You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If pyctuator is configured to start on "/" - it will modify content types of unrelated requests. A workaround is to initialize pyctuator in a sub path i.e /actuator
The culprit is likely therequest.path.startswith matching inside of FlaskPyctuator (And other adapters) middleware configuration. The
@after_this_request
def after_response(response: Response) -> Response:
response_time = datetime.now()
# Set the SBA-V2 content type for responses from Pyctuator
if request.path.startswith(self.pyctuator_impl.pyctuator_endpoint_path_prefix):
**response.headers["Content-Type"] = SBA_V2_CONTENT_TYPE**
# Record the request and response
self.record_request_and_response(response, request_time, response_time)
return response`