Invidious is an alternative front-end to YouTube
Update code formatting for Crystal 0.33.0
Leon Klingelebc9dc3bf1e7d
diff --git a/src/invidious.cr b/src/invidious.crindex a4584d4b..d2ff2a3d 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -60,7 +60,7 @@ REQUEST_HEADERS_WHITELIST = {"accept", "accept-encoding", "cache-control", "conRESPONSE_HEADERS_BLACKLIST = {"access-control-allow-origin", "alt-svc", "server"}HTTP_CHUNK_SIZE = 10485760 # ~10MB-CURRENT_BRANCH = {{ "#{`git branch | sed -n '/\* /s///p'`.strip}" }}+CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }}diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.crindex 6fcfa8d2..e43ae71d 100644--- a/src/invidious/helpers/utils.cr+++ b/src/invidious/helpers/utils.cr@@ -315,7 +315,7 @@ def get_referer(env, fallback = "/", unroll = true)endreferer = referer.full_path- referer = "/" + referer.lstrip("\/\\")+ referer = "/" + referer.lstrip("/\\")if referer == env.request.pathreferer = fallback