"""Minimal DataSLA hosting compatibility probe. Not the DataSLA application."""
import sys


def application(environ, start_response):
    body = (
        "DataSLA Truehost hosting check: OK\n"
        "Python: {}\n"
        "Gateway: WSGI (Passenger test only)\n"
        "This confirms only that a simple Python web response works.\n"
    ).format(sys.version.split()[0]).encode("utf-8")
    start_response("200 OK", [
        ("Content-Type", "text/plain; charset=utf-8"),
        ("Content-Length", str(len(body))),
        ("Cache-Control", "no-store"),
        ("X-Content-Type-Options", "nosniff"),
    ])
    return [body]
