gddo-server: fix redirect loop with canonical imports
Only redirect to canonical github project when the requested is a case
insensitive match, but not an exact match to the requested project.
Otherwise projects which have been moved to a new name, but use a
canonical import to the old name will result in a redirect loop.
Reviewed-by: Tuo Shan <email@example.com>
1 file changed