mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-04 13:49:43 +00:00
remove content length limit
This commit is contained in:
@@ -432,9 +432,9 @@ parsePkgCat = subparser $ command "categorize" (info cat $ progDesc "Add or remo
|
|||||||
parseEosPublish :: Parser EosUpload
|
parseEosPublish :: Parser EosUpload
|
||||||
parseEosPublish =
|
parseEosPublish =
|
||||||
subparser $
|
subparser $
|
||||||
command "upload" (info go $ progDesc "Publishes a .s9pk to a remote registry")
|
command "eos-upload" (info go $ progDesc "Publishes a .img to a remote registry")
|
||||||
<> metavar
|
<> metavar
|
||||||
"upload"
|
"eos-upload"
|
||||||
where
|
where
|
||||||
go =
|
go =
|
||||||
liftA3
|
liftA3
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ import Yesod.Persist.Core (
|
|||||||
YesodPersistRunner (..),
|
YesodPersistRunner (..),
|
||||||
defaultGetDBRunner,
|
defaultGetDBRunner,
|
||||||
)
|
)
|
||||||
|
import Foundation (Route(EosUploadR))
|
||||||
|
|
||||||
|
|
||||||
-- | The foundation datatype for your application. This can be a good place to
|
-- | The foundation datatype for your application. This can be a good place to
|
||||||
@@ -287,6 +288,7 @@ instance Yesod RegistryCtx where
|
|||||||
|
|
||||||
maximumContentLengthIO :: RegistryCtx -> Maybe (Route RegistryCtx) -> IO (Maybe Word64)
|
maximumContentLengthIO :: RegistryCtx -> Maybe (Route RegistryCtx) -> IO (Maybe Word64)
|
||||||
maximumContentLengthIO _ (Just PkgUploadR) = pure Nothing
|
maximumContentLengthIO _ (Just PkgUploadR) = pure Nothing
|
||||||
|
maximumContentLengthIO _ (Just EosUploadR) = pure Nothing
|
||||||
maximumContentLengthIO _ _ = pure $ Just 2097152 -- the original default
|
maximumContentLengthIO _ _ = pure $ Just 2097152 -- the original default
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user