summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-08-12 09:51:08 +1000
committerAndrew Gerrand <adg@golang.org>2014-08-12 09:51:08 +1000
commit0938cdf95f14d9223ee9980843286dde3313a163 (patch)
tree5296afe13805924bedd3da1a2e40983f03999b1c
parent2f2a8d485cc709256e303a9836befcc336d165af (diff)
downloadgo-0938cdf95f14d9223ee9980843286dde3313a163.tar.gz
[release-branch.go1.3] doc: document new ParseMultipartForm behavior
??? CL 123860043 / cf99a05f0fbc doc: document new ParseMultipartForm behavior Fixes issue 8403. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/123860043 ??? TBR=rsc CC=golang-codereviews https://codereview.appspot.com/127070043
-rw-r--r--doc/go1.3.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/go1.3.html b/doc/go1.3.html
index 0d2bda122..042de1bc7 100644
--- a/doc/go1.3.html
+++ b/doc/go1.3.html
@@ -521,6 +521,15 @@ field to specify an end-to-end timeout on requests made using the
client.
</li>
+<li>
+The <a href="/pkg/net/http/"><code>net/http</code></a> package's
+<a href="/pkg/net/http/#Request.ParseMultipartForm"><code>Request.ParseMultipartForm</code></a>
+method will now return an error if the body's <code>Content-Type</code>
+is not <code>mutipart/form-data</code>.
+Prior to Go 1.3 it would silently fail and return <code>nil</code>.
+Code that relies on the previous behavior should be updated.
+</li>
+
<li> In the <a href="/pkg/net/"><code>net</code></a> package,
the <a href="/pkg/net/#Dialer"><code>Dialer</code></a> struct now
has a <code>KeepAlive</code> option to specify a keep-alive period for the connection.