Skip to content

Use a ? after the $request_uri to perform a valid Redirect while cloning...

Matthias Käppler requested to merge github/fork/jojosch/nginx-ssl-redirect into master

Created by: jojosch

see https://github.com/gitlabhq/gitlabhq/issues/6203#issuecomment-50244473

before:

❯ curl -I http://gitlab/namespace/repo.git/info/refs?service=git-upload-pack HTTP/1.1 301 Moved Permanently Server: nginx Date: Sat, 26 Jul 2014 18:20:27 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://gitlab/namespace/repo.git/info/refs?**service=git-upload-pack?service=git-upload-pack**

after:

❯ curl -I http://gitlab/namespace/repo.git/info/refs\?service=git-upload-pack HTTP/1.1 301 Moved Permanently Server: nginx Date: Sat, 26 Jul 2014 18:23:54 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://gitlab/namespace/repo.git/info/refs?service=git-upload-pack

Merge request reports

Loading