def calculate_len_get(headers):
  """
  # Desc  : Function to calculate total length of data received for a get request.
  #         Calculated as sum of header length and the content length
  # Input : Header from a get request
  # Output: Returns the total length of data received
  """
  sock_header_len = 0 
  sock_content_len = 0
  total_length = 0
  sock_header_len = headers.find('\r\n\r\n') + 4
  for line in headers.splitlines():
    if "content-length" in line.lower():
      sock_content_len = int(line.split(':')[1].strip())
  total_length = sock_header_len + sock_content_len
  return total_length