Parses the accept-language header from an HTTP request