drakkan / sftpgo
Showing 1 of 3 files from the diff.
Other files ignored by Codecov

@@ -943,7 +943,7 @@
Loading
943 943
944 944
func (s *httpdServer) redirectToWebPath(w http.ResponseWriter, r *http.Request, webPath string) {
945 945
	if dataprovider.HasAdmin() {
946 -
		http.Redirect(w, r, webPath, http.StatusMovedPermanently)
946 +
		http.Redirect(w, r, webPath, http.StatusFound)
947 947
		return
948 948
	}
949 949
	if s.enableWebAdmin {
@@ -1200,7 +1200,7 @@
Loading
1200 1200
	if s.enableWebClient {
1201 1201
		s.router.Get(webBaseClientPath, func(w http.ResponseWriter, r *http.Request) {
1202 1202
			r.Body = http.MaxBytesReader(w, r.Body, maxRequestSize)
1203 -
			http.Redirect(w, r, webClientLoginPath, http.StatusMovedPermanently)
1203 +
			http.Redirect(w, r, webClientLoginPath, http.StatusFound)
1204 1204
		})
1205 1205
		s.router.Get(webClientLoginPath, s.handleClientWebLogin)
1206 1206
		s.router.Post(webClientLoginPath, s.handleWebClientLoginPost)
Files Coverage
common 99.91%
config 100.00%
ftpd 100.00%
httpd 99.95%
mfa 100.00%
sftpd 98.52%
telemetry 100.00%
webdavd 100.00%
Project Totals (63 files) 99.72%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading