aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/client/client.go5
-rw-r--r--http/client/client_test.go5
-rw-r--r--http/client/doc.go8
-rw-r--r--http/client/response.go5
-rw-r--r--http/client/response_test.go5
-rw-r--r--http/cookie/cookie.go5
-rw-r--r--http/cookie/doc.go8
-rw-r--r--http/request/client_ip.go5
-rw-r--r--http/request/client_ip_test.go5
-rw-r--r--http/request/context.go5
-rw-r--r--http/request/context_test.go5
-rw-r--r--http/request/cookie.go5
-rw-r--r--http/request/cookie_test.go5
-rw-r--r--http/request/doc.go8
-rw-r--r--http/request/params.go5
-rw-r--r--http/request/params_test.go5
-rw-r--r--http/response/builder.go5
-rw-r--r--http/response/builder_test.go5
-rw-r--r--http/response/doc.go8
-rw-r--r--http/response/html/doc.go8
-rw-r--r--http/response/html/html.go5
-rw-r--r--http/response/html/html_test.go5
-rw-r--r--http/response/json/doc.go8
-rw-r--r--http/response/json/json.go5
-rw-r--r--http/response/json/json_test.go5
-rw-r--r--http/response/xml/doc.go8
-rw-r--r--http/response/xml/xml.go5
-rw-r--r--http/response/xml/xml_test.go5
-rw-r--r--http/route/doc.go8
-rw-r--r--http/route/route.go5
30 files changed, 44 insertions, 130 deletions
diff --git a/http/client/client.go b/http/client/client.go
index cb966944..6e7c2282 100644
--- a/http/client/client.go
+++ b/http/client/client.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
diff --git a/http/client/client_test.go b/http/client/client_test.go
index 618345cf..7c65aa63 100644
--- a/http/client/client_test.go
+++ b/http/client/client_test.go
@@ -1,6 +1,5 @@
-// Copyright 2020 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
diff --git a/http/client/doc.go b/http/client/doc.go
deleted file mode 100644
index 03cb6cf0..00000000
--- a/http/client/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package client provides an HTTP client builder.
-*/
-package client // import "miniflux.app/http/client"
diff --git a/http/client/response.go b/http/client/response.go
index e61bf562..5f25eaf1 100644
--- a/http/client/response.go
+++ b/http/client/response.go
@@ -1,6 +1,5 @@
-// Copyright 2017 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
diff --git a/http/client/response_test.go b/http/client/response_test.go
index dfcf17e5..42aa2ec0 100644
--- a/http/client/response_test.go
+++ b/http/client/response_test.go
@@ -1,6 +1,5 @@
-// Copyright 2017 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
diff --git a/http/cookie/cookie.go b/http/cookie/cookie.go
index 8874c412..37688b55 100644
--- a/http/cookie/cookie.go
+++ b/http/cookie/cookie.go
@@ -1,6 +1,5 @@
-// Copyright 2017 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package cookie // import "miniflux.app/http/cookie"
diff --git a/http/cookie/doc.go b/http/cookie/doc.go
deleted file mode 100644
index f80831bb..00000000
--- a/http/cookie/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package cookie provides functions to build cookies.
-*/
-package cookie // import "miniflux.app/http/cookie"
diff --git a/http/request/client_ip.go b/http/request/client_ip.go
index 83d3a577..32952b67 100644
--- a/http/request/client_ip.go
+++ b/http/request/client_ip.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/client_ip_test.go b/http/request/client_ip_test.go
index 714b0dcd..5a76fd6b 100644
--- a/http/request/client_ip_test.go
+++ b/http/request/client_ip_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/context.go b/http/request/context.go
index 542c3d49..3fdaf798 100644
--- a/http/request/context.go
+++ b/http/request/context.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/context_test.go b/http/request/context_test.go
index f33e2d87..6f3858fb 100644
--- a/http/request/context_test.go
+++ b/http/request/context_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/cookie.go b/http/request/cookie.go
index 88cc626b..dddf1aed 100644
--- a/http/request/cookie.go
+++ b/http/request/cookie.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/cookie_test.go b/http/request/cookie_test.go
index 9c3b54db..ec8f1a8a 100644
--- a/http/request/cookie_test.go
+++ b/http/request/cookie_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/doc.go b/http/request/doc.go
deleted file mode 100644
index a35fcae2..00000000
--- a/http/request/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package request contains helper functions to work with the HTTP request.
-*/
-package request // import "miniflux.app/http/request"
diff --git a/http/request/params.go b/http/request/params.go
index 3c5849ca..dc7512b6 100644
--- a/http/request/params.go
+++ b/http/request/params.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/request/params_test.go b/http/request/params_test.go
index 7f1f8802..852959af 100644
--- a/http/request/params_test.go
+++ b/http/request/params_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
diff --git a/http/response/builder.go b/http/response/builder.go
index 99197293..33c144b5 100644
--- a/http/response/builder.go
+++ b/http/response/builder.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package response // import "miniflux.app/http/response"
diff --git a/http/response/builder_test.go b/http/response/builder_test.go
index c154dfe3..069eba78 100644
--- a/http/response/builder_test.go
+++ b/http/response/builder_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package response // import "miniflux.app/http/response"
diff --git a/http/response/doc.go b/http/response/doc.go
deleted file mode 100644
index 6987ae26..00000000
--- a/http/response/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package response contains everything related to HTTP responses.
-*/
-package response // import "miniflux.app/http/response"
diff --git a/http/response/html/doc.go b/http/response/html/doc.go
deleted file mode 100644
index 9051ea4f..00000000
--- a/http/response/html/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package html contains HTML response functions.
-*/
-package html // import "miniflux.app/http/response/html"
diff --git a/http/response/html/html.go b/http/response/html/html.go
index 3bba07f3..29d00592 100644
--- a/http/response/html/html.go
+++ b/http/response/html/html.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package html // import "miniflux.app/http/response/html"
diff --git a/http/response/html/html_test.go b/http/response/html/html_test.go
index 62c9bb80..433e1691 100644
--- a/http/response/html/html_test.go
+++ b/http/response/html/html_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package html // import "miniflux.app/http/response/html"
diff --git a/http/response/json/doc.go b/http/response/json/doc.go
deleted file mode 100644
index 7c10e5e6..00000000
--- a/http/response/json/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package json contains JSON response functions.
-*/
-package json // import "miniflux.app/http/response/json"
diff --git a/http/response/json/json.go b/http/response/json/json.go
index dfd49784..3033045d 100644
--- a/http/response/json/json.go
+++ b/http/response/json/json.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package json // import "miniflux.app/http/response/json"
diff --git a/http/response/json/json_test.go b/http/response/json/json_test.go
index ee5580bf..1f3e6f19 100644
--- a/http/response/json/json_test.go
+++ b/http/response/json/json_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package json // import "miniflux.app/http/response/json"
diff --git a/http/response/xml/doc.go b/http/response/xml/doc.go
deleted file mode 100644
index 8ca4655e..00000000
--- a/http/response/xml/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package xml contains XML response functions.
-*/
-package xml // import "miniflux.app/http/response/xml"
diff --git a/http/response/xml/xml.go b/http/response/xml/xml.go
index 771a85ef..de26ad66 100644
--- a/http/response/xml/xml.go
+++ b/http/response/xml/xml.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package xml // import "miniflux.app/http/response/xml"
diff --git a/http/response/xml/xml_test.go b/http/response/xml/xml_test.go
index ada6bd4f..638e14d4 100644
--- a/http/response/xml/xml_test.go
+++ b/http/response/xml/xml_test.go
@@ -1,6 +1,5 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package xml // import "miniflux.app/http/response/xml"
diff --git a/http/route/doc.go b/http/route/doc.go
deleted file mode 100644
index 3633d709..00000000
--- a/http/route/doc.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
-
-/*
-Package route contains helper functions to work with defined routes.
-*/
-package route // import "miniflux.app/http/route"
diff --git a/http/route/route.go b/http/route/route.go
index 0a0ec3b6..4cee659e 100644
--- a/http/route/route.go
+++ b/http/route/route.go
@@ -1,6 +1,5 @@
-// Copyright 2017 Frédéric Guillot. All rights reserved.
-// Use of this source code is governed by the Apache 2.0
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
package route // import "miniflux.app/http/route"