from pathlib import Path


def get_headers(fname: str) -> dict:
    """
    Parse headers directly copied from dev tools.
    """
    return {t[0].lower(): t[-1].strip()
            for t in (s.partition(':')
                      for s in Path(fname).read_text().split('\n') if s)}