]> Cypherpunks repositories - gostls13.git/commit
encoding/pem: do not try to round trip value with leading/trailing space
authorRuss Cox <rsc@golang.org>
Fri, 31 Mar 2017 20:15:51 +0000 (16:15 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 3 Apr 2017 13:56:30 +0000 (13:56 +0000)
commit65c17a05e98866d1e29a5d53fc21b0221760698d
tree4a48cd11fe4ae99ca3a5e7ca478b68249522e82a
parent64f00fb150fff62a144e188e00f59f044ffb7d23
encoding/pem: do not try to round trip value with leading/trailing space

The header is literally

Key: Value

If the value or the key has leading or trailing spaces, those will
be lost by the round trip.

Found because testing/quick returns different values now.

Change-Id: I0f574bdbb5990689509c24309854d8f814b5efa0
Reviewed-on: https://go-review.googlesource.com/39211
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/pem/pem_test.go