Skip to main content

parse_upload_pack_request

Function parse_upload_pack_request 

Source
pub fn parse_upload_pack_request(body: &[u8]) -> UploadPackRequest
Expand description

Parse a git-upload-pack request body.

Unknown or malformed lines are skipped rather than rejected: the body comes off the network, and a honeypot that dies on a malformed want line is worse than one that answers what it understood. A truncated length header ends parsing.