Let get_content_length() use a header value as input instead of the whole header