]> Cypherpunks repositories - gostls13.git/commit
net/http: document io.Seeker requirement for fs.FS arguments
authorSean Liao <sean@liao.dev>
Fri, 12 Jul 2024 19:42:50 +0000 (20:42 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 15 Jul 2024 16:32:33 +0000 (16:32 +0000)
commit5d36bc18d56fa5d7ad10b675dd82892ed3100332
treeadd1309c57ccde9f5b9e48cc9b3fd1d7b0af6557
parent071b8d51c1a70fa6b12f0bed2e93370e193333fd
net/http: document io.Seeker requirement for fs.FS arguments

Using the same wording as http.FS, even though it's not strictly
required if a content type can be determined by file extension.

Fixes #66877
Updates #44553

Change-Id: I7b70c10909bdd289a57d1998a565262b8aaf2dd2
Reviewed-on: https://go-review.googlesource.com/c/go/+/597977
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/http/filetransport.go
src/net/http/fs.go