diff options
| author | qmuntal <quimmuntal@gmail.com> | 2022-05-10 09:52:20 +0200 |
|---|---|---|
| committer | Roland Shoemaker <roland@golang.org> | 2022-11-14 19:47:59 +0000 |
| commit | 0f0aa5d8a6a0253627d58b3aa083b24a1091933f (patch) | |
| tree | b89c8dd5d6fca9617a8123fd7f4c7281a537646f /src/net/http/httputil/reverseproxy.go | |
| parent | dc6b7c86df3cac29c3506ef8b251345b8d914496 (diff) | |
| download | go-0f0aa5d8a6a0253627d58b3aa083b24a1091933f.tar.xz | |
os,syscall: File.Stat to use file handle for directories on Windows
Updates syscall.Open to support opening directories via CreateFileW.
CreateFileW handles are more versatile than FindFirstFile handles.
They can be used in Win32 APIs like GetFileInformationByHandle and
SetFilePointerEx, which are needed by some Go APIs.
Fixes #52747
Fixes #36019
Change-Id: I26a00cef9844fb4abeeb18d2f9d854162a146651
Reviewed-on: https://go-review.googlesource.com/c/go/+/405275
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Patrik Nyblom <pnyb@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/net/http/httputil/reverseproxy.go')
0 files changed, 0 insertions, 0 deletions
