diff options
| author | Dan Harrington <harringtond@google.com> | 2016-10-25 12:51:39 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-11-03 18:14:56 +0000 |
| commit | f3862742b67a84edf939f41276360ada4e7197a6 (patch) | |
| tree | 775ea5f50baa3497e8a700a9984220d8c4dcbd96 /src/net/http/export_test.go | |
| parent | 18f0e88103aaa429e92564312b4ee966dcb77102 (diff) | |
| download | go-f3862742b67a84edf939f41276360ada4e7197a6.tar.xz | |
net/http: support If-Match in ServeContent
- Added support for If-Match and If-Unmodified-Since.
- Precondition checks now more strictly follow RFC 7232 section 6, which
affects precedence when multiple condition headers are present.
- When serving a 304, Last-Modified header is now removed when no ETag is
present (as suggested by RFC 7232 section 4.1).
- If-None-Match supports multiple ETags.
- ETag comparison now correctly handles weak ETags.
Fixes #17572
Change-Id: I35039dea6811480ccf2889f8ed9c6a39ce34bfff
Reviewed-on: https://go-review.googlesource.com/32014
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/export_test.go')
| -rw-r--r-- | src/net/http/export_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go index 40f87dc8e9..b61f58b2db 100644 --- a/src/net/http/export_test.go +++ b/src/net/http/export_test.go @@ -24,6 +24,7 @@ var ( ExportErrRequestCanceled = errRequestCanceled ExportErrRequestCanceledConn = errRequestCanceledConn ExportServeFile = serveFile + ExportScanETag = scanETag ExportHttp2ConfigureServer = http2ConfigureServer ) |
