From: Brad Fitzpatrick Date: Thu, 8 Dec 2016 23:49:54 +0000 (+0000) Subject: doc: add http.NoBody and Transport change to go1.8.html X-Git-Tag: go1.8beta2~58 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ad47c4f67d592c768435f0c04a6d61ebee8c06f;p=gostls13.git doc: add http.NoBody and Transport change to go1.8.html Fixes #18257 Change-Id: Iafba5aa0a0641cfe36351bb0e4b57f20257fdc4e Reviewed-on: https://go-review.googlesource.com/34210 Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.8.html b/doc/go1.8.html index 820a0b287a..4dc6b79bd6 100644 --- a/doc/go1.8.html +++ b/doc/go1.8.html @@ -1320,6 +1320,22 @@ crypto/x509: return error for missing SerialNumber (CL 27238) to use IPv4 as a backup if it looks like IPv6 might be failing. + +
  • + The Transport + no longer reads a byte of a non-nil + Request.Body + when the + Request.ContentLength + is zero to determine whether the ContentLength + is actually zero or just undefined. + To explicitly signal that a body has zero length, + either set it to nil, or set it to the new value + NoBody. + The new NoBody value is intended for use by Request + constructor functions; it is used by + NewRequest. +