]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: don't panic serving dir in ServeFile with empty Request.URL.Path
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 4 Jun 2019 22:26:09 +0000 (22:26 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Aug 2019 18:38:52 +0000 (18:38 +0000)
commit7ed973b4d9dab38347f34e87febf3c8659160ce6
tree9a398d0a24aee47847b791b1458f2c1811d07184
parentb3a1205a1133328068f002dd44141cb9efb2127b
net/http: don't panic serving dir in ServeFile with empty Request.URL.Path

Updates #30165
Updates #31622

Change-Id: I7a4b91aa7c5c3af8c0b1273cbb42046feddf7d78
Reviewed-on: https://go-review.googlesource.com/c/go/+/180499
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/fs.go
src/net/http/fs_test.go