Skip to content
  • Jeff King's avatar
    http: optionally extract charset parameter from content-type · e3131626
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Since the previous commit, we now give a sanitized,
    shortened version of the content-type header to any callers
    who ask for it.
    
    This patch adds back a way for them to cleanly access
    specific parameters to the type. We could easily extract all
    parameters and make them available via a string_list, but:
    
      1. That complicates the interface and memory management.
    
      2. In practice, no planned callers care about anything
         except the charset.
    
    This patch therefore goes with the simplest thing, and we
    can expand or change the interface later if it becomes
    necessary.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    e3131626