Descriptionnet/http: rename ServeFile to ServeOSFile, add new ServeFile
This new function takes an http.File and simply serves its contents,
bypassing the redirect behavior (that can still be used through
FileServer).
ServeOSFile is now a mere helper that opens the named file from the
local file system and invokes ServeFile.
Users of the original ServeFile will need to switch to using FileServer
(if they need the redirect behavior) or just use ServeOSFile.
Fixes issue 2039.
Patch Set 1 #Patch Set 2 : diff -r f690897afe60 https://go.googlecode.com/hg #
MessagesTotal messages: 6
|