]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document new ParseMultipartForm behavior
authorAndrew Gerrand <adg@golang.org>
Thu, 7 Aug 2014 05:42:06 +0000 (15:42 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 7 Aug 2014 05:42:06 +0000 (15:42 +1000)
Fixes #8403.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/123860043

doc/go1.3.html

index 0d2bda122d8ebc74aa062470c0e5d3cbce29a231..042de1bc7b214808222dbeeabb2bd07fa20875eb 100644 (file)
@@ -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.