mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
add support for header based early data on server side
This commit is contained in:
parent
75231604c7
commit
d378b8c42e
@ -41,7 +41,7 @@ var upgrader = &websocket.Upgrader{
|
||||
|
||||
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
|
||||
var earlyData io.Reader
|
||||
if !h.earlyDataEnabled {
|
||||
if !h.earlyDataEnabled { // nolint: gocritic
|
||||
if request.URL.Path != h.path {
|
||||
writer.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user