diff options
| author | Russ Cox <rsc@golang.org> | 2017-12-05 14:38:50 -0500 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-12-06 03:59:41 +0000 |
| commit | c3fa046f543526cf1fd15d9d2b995f57511837c1 (patch) | |
| tree | a0b3d9c3d132441afbb447f917d6410d6da3dac9 /src/database/sql/driver | |
| parent | 358d7c93e2df39e1e76d27d79fa18e584dca9d5a (diff) | |
| download | go-c3fa046f543526cf1fd15d9d2b995f57511837c1.tar.xz | |
encoding/pem: change Encode, EncodeToMemory not to generate partial PEM blocks
Originally these routines could not fail except by
returning errors from the underlying writer.
Then we realized that header keys containing colons
needed to be rejected, and we started returning an error
from Encode. But that only happens after writing a
partial PEM block to the underlying writer, which is
unfortunate, but at least it was undocumented.
CL 77790 then documented this unfortunate behavior.
Instead of documenting unfortunate behavior, fix it.
Change-Id: Ic7467a576c4cecd16a99138571a1269cc4f96204
Reviewed-on: https://go-review.googlesource.com/82076
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database/sql/driver')
0 files changed, 0 insertions, 0 deletions
