Skip to content

Commit

Permalink
remove 'copy headers on redirect' functionality needed for Go < 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Aug 14, 2024
1 parent a38567a commit 84e8fca
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Eventsource implements a [Go](http://golang.org/) implementation of client and s

This is a fork of: https://github.com/donovanhide/eventsource

This version of the library supports Go 1.8 and higher. However, its unit tests can only be run in Go 1.13 or higher.
This version of the library supports Go 1.21 and higher.

The package is a Go module, but can still be imported by projects that do not use modules.

Expand Down
27 changes: 0 additions & 27 deletions check_redirect.go

This file was deleted.

10 changes: 0 additions & 10 deletions check_redirect_go1.8.go

This file was deleted.

4 changes: 0 additions & 4 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ func newStream(request *http.Request, configuredOptions streamOptions) *Stream {
stream.Errors = make(chan error)
}

// override checkRedirect to include headers before go1.8
// we'd prefer to skip this because it is not thread-safe and breaks golang race condition checking
setCheckRedirect(stream.c)

return stream
}

Expand Down

0 comments on commit 84e8fca

Please sign in to comment.