when a request matches a package redirect to the repo #11

Open
opened 2016-06-28 22:06:20 -07:00 by sm · 0 comments
Owner

i.e.:

curl https://go.mcquay.me/vain/errors?go-get=1                                                                                                                     
<!DOCTYPE html>
<html><head>
<meta name="go-import" content="go.mcquay.me/vain git https://s.mcquay.me/sm/vain">
</head>
<body><p>go tool metadata in head</p></body>
</html>

and if I (notice there's no "?go-get=1"):

curl https://go.mcquay.me/vain/errors

# redirect
i.e.: ```bash curl https://go.mcquay.me/vain/errors?go-get=1 <!DOCTYPE html> <html><head> <meta name="go-import" content="go.mcquay.me/vain git https://s.mcquay.me/sm/vain"> </head> <body><p>go tool metadata in head</p></body> </html> ``` and if I (notice there's no "?go-get=1"): ```bash curl https://go.mcquay.me/vain/errors # redirect ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sm/vain#11
No description provided.