summaryrefslogtreecommitdiffstats
path: root/modules/web
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web')
-rw-r--r--modules/web/middleware/binding.go3
-rw-r--r--modules/web/middleware/cookie.go3
-rw-r--r--modules/web/middleware/data.go3
-rw-r--r--modules/web/middleware/flash.go3
-rw-r--r--modules/web/middleware/locale.go3
-rw-r--r--modules/web/middleware/request.go3
-rw-r--r--modules/web/route.go3
-rw-r--r--modules/web/route_test.go3
-rw-r--r--modules/web/routing/context.go3
-rw-r--r--modules/web/routing/funcinfo.go3
-rw-r--r--modules/web/routing/funcinfo_test.go3
-rw-r--r--modules/web/routing/logger.go3
-rw-r--r--modules/web/routing/logger_manager.go3
-rw-r--r--modules/web/routing/requestrecord.go3
-rw-r--r--modules/web/wrap.go3
-rw-r--r--modules/web/wrap_convert.go3
16 files changed, 16 insertions, 32 deletions
diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go
index cced9717be..733f00a1d5 100644
--- a/modules/web/middleware/binding.go
+++ b/modules/web/middleware/binding.go
@@ -1,7 +1,6 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go
index b5904d6713..7c1aaf6daf 100644
--- a/modules/web/middleware/cookie.go
+++ b/modules/web/middleware/cookie.go
@@ -1,7 +1,6 @@
// Copyright 2020 The Macaron Authors
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go
index 7de686498a..43189940ee 100644
--- a/modules/web/middleware/data.go
+++ b/modules/web/middleware/data.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/flash.go b/modules/web/middleware/flash.go
index d1d4a864e3..f2d7cc692d 100644
--- a/modules/web/middleware/flash.go
+++ b/modules/web/middleware/flash.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go
index f4018527c0..f60be4bbdb 100644
--- a/modules/web/middleware/locale.go
+++ b/modules/web/middleware/locale.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/middleware/request.go b/modules/web/middleware/request.go
index f620da5eea..34add27214 100644
--- a/modules/web/middleware/request.go
+++ b/modules/web/middleware/request.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package middleware
diff --git a/modules/web/route.go b/modules/web/route.go
index 4341b1bf5d..cd72aabae5 100644
--- a/modules/web/route.go
+++ b/modules/web/route.go
@@ -1,6 +1,5 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/route_test.go b/modules/web/route_test.go
index 801afe92c9..232444cb83 100644
--- a/modules/web/route_test.go
+++ b/modules/web/route_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/routing/context.go b/modules/web/routing/context.go
index 7e263db5a2..0d5e765543 100644
--- a/modules/web/routing/context.go
+++ b/modules/web/routing/context.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo.go b/modules/web/routing/funcinfo.go
index 9bb38af1c8..499bc2c7aa 100644
--- a/modules/web/routing/funcinfo.go
+++ b/modules/web/routing/funcinfo.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/funcinfo_test.go b/modules/web/routing/funcinfo_test.go
index 9cea7e2817..2ab5960373 100644
--- a/modules/web/routing/funcinfo_test.go
+++ b/modules/web/routing/funcinfo_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go
index cf3b50725d..d1b0ff0cda 100644
--- a/modules/web/routing/logger.go
+++ b/modules/web/routing/logger.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go
index 7715b0b5d3..aa25ec3a27 100644
--- a/modules/web/routing/logger_manager.go
+++ b/modules/web/routing/logger_manager.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/routing/requestrecord.go b/modules/web/routing/requestrecord.go
index 5e225f32e4..34a2d33893 100644
--- a/modules/web/routing/requestrecord.go
+++ b/modules/web/routing/requestrecord.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package routing
diff --git a/modules/web/wrap.go b/modules/web/wrap.go
index b55b876069..0ff9529fae 100644
--- a/modules/web/wrap.go
+++ b/modules/web/wrap.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web
diff --git a/modules/web/wrap_convert.go b/modules/web/wrap_convert.go
index 9084cfa074..6778e208cf 100644
--- a/modules/web/wrap_convert.go
+++ b/modules/web/wrap_convert.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package web