Merge pull request #1 from bilus/bugfix-gomod-sum-missing
Bugfix: return error when go.mod can't be loaded
This commit is contained in:
commit
0837c80915
@ -303,9 +303,11 @@ func (api *api) mod(w http.ResponseWriter, r *http.Request, module, version stri
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
w.Write([]byte(fmt.Sprintf("module %s\n", module)))
|
||||
return
|
||||
}
|
||||
}
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
}
|
||||
|
||||
func (api *api) zip(w http.ResponseWriter, r *http.Request, module, version string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user