Welcome to mirror list, hosted at ThFree Co, Russian Federation.

artifact.go « handlers « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 994fde334d67e2c07e12adff8b918316835ff607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package handlers

import "net/http"

func ArtifactMiddleware(handler http.Handler, h *Handlers) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if h.HandleArtifactRequest(w, r) {
			return
		}

		handler.ServeHTTP(w, r)
	})
}