From bfe5f2752bbf64462b3e98b901bd8fad5b31f90c Mon Sep 17 00:00:00 2001 From: Tony Redondo Date: Mon, 16 Sep 2024 15:20:01 +0200 Subject: [PATCH] internal/civisibility/utils/net: adding copyright header --- internal/civisibility/utils/net/http.go | 5 +++++ internal/civisibility/utils/net/http_test.go | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/internal/civisibility/utils/net/http.go b/internal/civisibility/utils/net/http.go index f246f27ff7..907634022d 100644 --- a/internal/civisibility/utils/net/http.go +++ b/internal/civisibility/utils/net/http.go @@ -1,3 +1,8 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2.0. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2024 Datadog, Inc. + package net import ( diff --git a/internal/civisibility/utils/net/http_test.go b/internal/civisibility/utils/net/http_test.go index 4c14038215..4029f87514 100644 --- a/internal/civisibility/utils/net/http_test.go +++ b/internal/civisibility/utils/net/http_test.go @@ -1,3 +1,8 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2.0. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2024 Datadog, Inc. + package net import ( @@ -92,7 +97,7 @@ func mockMultipartHandler(w http.ResponseWriter, r *http.Request) { } // Mock server for rate limiting with predictable reset timing -func mockRateLimitHandler(w http.ResponseWriter, r *http.Request) { +func mockRateLimitHandler(w http.ResponseWriter, _ *http.Request) { // Set the rate limit reset time to 2 seconds w.Header().Set(HeaderRateLimitReset, "2") http.Error(w, "Too Many Requests", HTTPStatusTooManyRequests)