Skip to content

Commit 23ab331

Browse files
committed
Removed deprecated CloseNotifier logic
Signed-off-by: Justen Martin <jmart@the-coder.com>
1 parent ad1b781 commit 23ab331

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

hack/validate/golangci-lint.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ issues:
6262
- text: "SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead"
6363
linters:
6464
- staticcheck
65-
# FIXME temporarily suppress these. See #39929
66-
- text: "SA1019: http.CloseNotifier is deprecated"
67-
linters:
68-
- staticcheck
6965
# FIXME temporarily suppress these. See #39926
7066
- text: "SA1019: httputil.NewClientConn is deprecated"
7167
linters:

pkg/authorization/response.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
type ResponseModifier interface {
1616
http.ResponseWriter
1717
http.Flusher
18-
http.CloseNotifier
1918

2019
// RawBody returns the current http content
2120
RawBody() []byte
@@ -155,16 +154,6 @@ func (rm *responseModifier) Hijack() (net.Conn, *bufio.ReadWriter, error) {
155154
return hijacker.Hijack()
156155
}
157156

158-
// CloseNotify uses the internal close notify API of the wrapped http.ResponseWriter
159-
func (rm *responseModifier) CloseNotify() <-chan bool {
160-
closeNotifier, ok := rm.rw.(http.CloseNotifier)
161-
if !ok {
162-
logrus.Error("Internal response writer doesn't support the CloseNotifier interface")
163-
return nil
164-
}
165-
return closeNotifier.CloseNotify()
166-
}
167-
168157
// Flush uses the internal flush API of the wrapped http.ResponseWriter
169158
func (rm *responseModifier) Flush() {
170159
flusher, ok := rm.rw.(http.Flusher)

0 commit comments

Comments
 (0)