def parse_line(self, line):
        """Updates the dictionary with a single header line.
        """
        if line[0].isspace():
            # continuation of a multi-line header
            new_part = ' ' + line.lstrip()
            self._as_list[self._last_key][-1] += new_part
            dict.__setitem__(self, self._last_key,
                             self[self._last_key] + new_part)
        else:
            name, value = line.split(":", 1)
            self.add(name, value.strip())
dataset/ETHPy150Open toastdriven/itty/itty.py/HTTPHeaders.parse_line/original