mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 03:41:57 +00:00
Merge pull request #28 from Start9Labs/bugfix/user-agent-meshos
fixes useragent parsing for 'MeshOS' which should enable filtering ba…
This commit is contained in:
@@ -60,7 +60,7 @@ instance Show FileExtension where
|
|||||||
|
|
||||||
userAgentOsVersionParser :: Atto.Parser AppVersion
|
userAgentOsVersionParser :: Atto.Parser AppVersion
|
||||||
userAgentOsVersionParser = do
|
userAgentOsVersionParser = do
|
||||||
void $ (Atto.string "AmbassadorOS" <|> Atto.string "EmbassyOS") *> Atto.char '/'
|
void $ (Atto.string "EmbassyOS" <|> Atto.string "AmbassadorOS" <|> Atto.string "MeshOS") *> Atto.char '/'
|
||||||
semverParserBS
|
semverParserBS
|
||||||
|
|
||||||
getEmbassyOsVersion :: Handler (Maybe AppVersion)
|
getEmbassyOsVersion :: Handler (Maybe AppVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user