diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-05 10:20:17 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-05 10:20:17 +0000 |
commit | 966a71d9f5ce6d70b2cb90a137f9ae9cc936ceac (patch) | |
tree | 6e9573296550d259f594636263ba48331030ddc2 /libgo/go/net/http/header.go | |
parent | 0d9d8091acb1893fa14499c7dc7352665e342ffb (diff) | |
download | gcc-966a71d9f5ce6d70b2cb90a137f9ae9cc936ceac.tar.gz |
2013-02-05 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 195751 using svnmerge.py
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@195753 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/net/http/header.go')
-rw-r--r-- | libgo/go/net/http/header.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/go/net/http/header.go b/libgo/go/net/http/header.go index 91417366ae8..f479b7b4eb9 100644 --- a/libgo/go/net/http/header.go +++ b/libgo/go/net/http/header.go @@ -54,6 +54,16 @@ func (h Header) Write(w io.Writer) error { return h.WriteSubset(w, nil) } +func (h Header) clone() Header { + h2 := make(Header, len(h)) + for k, vv := range h { + vv2 := make([]string, len(vv)) + copy(vv2, vv) + h2[k] = vv2 + } + return h2 +} + var timeFormats = []string{ TimeFormat, time.RFC850, |