🚧 Fix bug with file
This commit is contained in:
parent
250885e831
commit
de1f8ff108
@ -46,14 +46,14 @@ public class Service
|
||||
public Response upload(String path, byte[] body)
|
||||
{
|
||||
MavenContext mavenContext = MavenContextProvider.parse(path);
|
||||
if (mavenContext.version().getSnapshot())
|
||||
{
|
||||
throw new WebApplicationException(501);
|
||||
}
|
||||
switch (mavenContext.file().getType())
|
||||
{
|
||||
case JAR ->
|
||||
{
|
||||
if (mavenContext.version().getSnapshot())
|
||||
{
|
||||
throw new WebApplicationException(501);
|
||||
}
|
||||
if (FileHash.NONE.equals(mavenContext.file().getHash()))
|
||||
{
|
||||
return jarService.store(mavenContext, body);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user