From f3862742b67a84edf939f41276360ada4e7197a6 Mon Sep 17 00:00:00 2001 From: Dan Harrington Date: Tue, 25 Oct 2016 12:51:39 -0700 Subject: 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 --- src/net/http/export_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net/http/export_test.go') 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 ) -- cgit v1.3