Commit 0784e691 authored by Robert Griesemer's avatar Robert Griesemer

net/http: fix typo in doc string

Fixes #14475.

Change-Id: I1b5b0a9793a417572ec55f313185d03ad5ae9d01
Reviewed-on: https://go-review.googlesource.com/19846Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent bd70bd9c
...@@ -451,7 +451,7 @@ func localRedirect(w ResponseWriter, r *Request, newPath string) { ...@@ -451,7 +451,7 @@ func localRedirect(w ResponseWriter, r *Request, newPath string) {
// ServeFile replies to the request with the contents of the named // ServeFile replies to the request with the contents of the named
// file or directory. // file or directory.
// //
// If the provided file or direcory name is a relative path, it is // If the provided file or directory name is a relative path, it is
// interpreted relative to the current directory and may ascend to parent // interpreted relative to the current directory and may ascend to parent
// directories. If the provided name is constructed from user input, it // directories. If the provided name is constructed from user input, it
// should be sanitized before calling ServeFile. As a precaution, ServeFile // should be sanitized before calling ServeFile. As a precaution, ServeFile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment