summaryrefslogtreecommitdiff
path: root/src/pkg/net/textproto/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/net/textproto/header.go')
-rw-r--r--src/pkg/net/textproto/header.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/textproto/header.go b/src/pkg/net/textproto/header.go
index 288deb2ce..7fb32f804 100644
--- a/src/pkg/net/textproto/header.go
+++ b/src/pkg/net/textproto/header.go
@@ -39,5 +39,5 @@ func (h MIMEHeader) Get(key string) string {
// Del deletes the values associated with key.
func (h MIMEHeader) Del(key string) {
- h[CanonicalMIMEHeaderKey(key)] = nil, false
+ delete(h, CanonicalMIMEHeaderKey(key))
}