Skip to main content

append_to

Function append_to 

Source
pub fn append_to(headers: &mut HeaderMap, uri: &str) -> Result<(), Error>
Expand description

Append a c2pa-manifest link to a header map.

Appends rather than replaces, so existing Link fields survive. The target is percent-encoded by link::encode_target, so a hostile URI is rendered inert rather than rejected — a CR/LF ends up inside the URI as %0D%0A instead of starting a header of its own.