tildepages/server
~lucidiot d84955e6cd Fix URL building for default repo branch API
Using the base URL in path.Join caused it to remove the two slashes (because /////tmp == /tmp):

`https:/tildegit.org/api/v1/repos/owner/name`

Then, using that in URL.Parse causes it to see a `https:` scheme, and the / right afterwards means "start a path here", not a hostname, because hostnames begin with two slashes. That's a valid URL, with no hostname. Then it gets turned back into a string:

`https:///tildegit.org/api/v1/repos/owner/name`

That's another way of expressing the same URL with no hostname: //<empty hostname>/<path>.

curl, Firefox and Chromium all fix the triple slash automatically, but fasthttp doesn't, and it tries to look up the empty string as a DNS host!
2022-07-20 16:21:35 +00:00
..
cache make mem cache an interface and inject 2021-12-05 14:48:51 +01:00
certificates Add pipeline (#65) 2022-03-27 21:54:06 +02:00
database Add pipeline (#65) 2022-03-27 21:54:06 +02:00
dns unexport if posible 2021-12-05 16:24:26 +01:00
upstream Fix URL building for default repo branch API 2022-07-20 16:21:35 +00:00
utils move more args of Upstream() to upstream Options 2021-12-05 19:53:23 +01:00
handler.go add some more logging so i can see where stuff is failing 2022-05-26 11:33:17 -04:00
handler_test.go Fix tests to let CI pass (#66) 2022-03-30 21:31:09 +02:00
helpers.go move helper func in related packages 2021-12-05 14:48:47 +01:00
setup.go Change MaxConnsPerIP to 0 to fix too many connections from HAProxy (#77) 2022-05-14 22:29:54 +02:00
try.go Add pipeline (#65) 2022-03-27 21:54:06 +02:00