feat: implement EmptyUrls response handling and add release version configuration
Build and Release / release (push) Successful in 1m35s
Build and Release / release (push) Successful in 1m35s
This commit is contained in:
@@ -141,6 +141,17 @@ func main() {
|
||||
return req, nil
|
||||
}
|
||||
|
||||
if matchURL(path, EmptyUrls) {
|
||||
full := req.URL.String()
|
||||
zlog.Warn().Str("url", full).Msg("Empty URL Response")
|
||||
return req, goproxy.NewResponse(
|
||||
req,
|
||||
goproxy.ContentTypeText,
|
||||
http.StatusOK,
|
||||
"",
|
||||
)
|
||||
}
|
||||
|
||||
if matchDomain(host, RedirectDomains) {
|
||||
if matchURL(path, BlockUrls) {
|
||||
full := req.URL.String()
|
||||
|
||||
Reference in New Issue
Block a user