SplitHTTP: Remove ok compatibility logic (#3753)

Remove some code that was added to maintain compatibility with older
Xray versions. This breaks compatibility with Xray-core v1.8.23 or older.
This commit is contained in:
mmmray 2024-09-03 04:25:15 +02:00 committed by GitHub
parent f1c439c2aa
commit ab3c00e96b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 59 deletions

View file

@ -285,13 +285,11 @@ func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.Me
}
}()
lazyRawDownload, remoteAddr, localAddr, err := httpClient.OpenDownload(context.WithoutCancel(ctx), requestURL.String())
reader, remoteAddr, localAddr, err := httpClient.OpenDownload(context.WithoutCancel(ctx), requestURL.String())
if err != nil {
return nil, err
}
reader := &stripOkReader{ReadCloser: lazyRawDownload}
writer := uploadWriter{
uploadPipeWriter,
maxUploadSize,