This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
forked from appc/spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
discovery: fix HasPrefix in matching app name
The following meta: <meta name="ac-discovery" content="coreos.com/etcd https://github.com/coreos/etcd/releases/download/{version}/etcd-{version}-{os}-{arch}.{ext}"> Should make the following discoverable: actool discover coreos.com/etcd/fdfdsffds:v2.0.10 actool discover coreos.com/etcd:v2.0.10 But not the following: actool discover coreos.com/etcdxxxxxxx:v2.0.10 This is now fixed by checking the character '/' in addition to HasPrefix. Fixes appc#592
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>My app</title> | ||
<meta name="ac-discovery" content="example.com/myapp https://storage.example.com/myapp-{version}-{os}-{arch}.{ext}"> | ||
<meta name="ac-discovery-pubkeys" content="example.com https://example.com/pubkeys.gpg"> | ||
</head> | ||
|
||
<body> | ||
<h1>My App</h1> | ||
</body> | ||
</html> |