diff --git a/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex b/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex index bd4bb8100ba5..ad7f96d6b2a6 100644 --- a/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex +++ b/pkgs/desktops/pantheon/nixpkgs_github_update/lib/nixpkgs_github_update/github_latest_version.ex @@ -24,7 +24,7 @@ defmodule NixpkgsGitHubUpdate.GitHubLatestVersion do String.to_charlist("#{System.get_env("OAUTH_TOKEN")}") end - defp put_token(headers, token) when is_binary(token) do + defp put_token(headers, token) when is_list(token) do Map.put_new(headers, 'Authorization', 'token #{token}') end