import { readResponseWithLimit } from "openclaw/plugin-sdk/media-runtime"; import type { SsrFPolicy } from "../../runtime-api.js"; import { getMSTeamsRuntime } from "../runtime.js"; import { inferPlaceholder } from "./shared.js"; import type { MSTeamsInboundMedia } from "./types.js";
// Enforce the max-bytes cap before buffering the full body so a rogue // response cannot drive RSS usage past the configured limit. const contentLength = response.headers.get("content-length"); if (contentLength) { const length = Number(contentLength); if (Number.isFinite(length) && length > params.maxBytes) { thrownew Error(`content length ${length} exceeds maxBytes ${params.maxBytes}`);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.