<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/net/http/requestwrite_test.go, branch json-isValidNumber</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2022-09-07T01:07:32Z</updated>
<entry>
<title>net/http: use strings.Builder</title>
<updated>2022-09-07T01:07:32Z</updated>
<author>
<name>cuiweixie</name>
<email>cuiweixie@gmail.com</email>
</author>
<published>2022-09-04T10:30:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=403e5f1cb174185a763745276e12156e8d70ba6a'/>
<id>urn:sha1:403e5f1cb174185a763745276e12156e8d70ba6a</id>
<content type='text'>
Change-Id: I754edcf21e003a3f4037fb2c5d8d06f2cd5f2fa3
Reviewed-on: https://go-review.googlesource.com/c/go/+/428267
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: xie cui &lt;523516579@qq.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>all: gofmt -w -r 'interface{} -&gt; any' src</title>
<updated>2021-12-13T18:45:54Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-12-01T17:15:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2580d0e08d5e9f979b943758d3c49877fb2324cb'/>
<id>urn:sha1:2580d0e08d5e9f979b943758d3c49877fb2324cb</id>
<content type='text'>
And then revert the bootstrap cmd directories and certain testdata.
And adjust tests as needed.

Not reverting the changes in std that are bootstrapped,
because some of those changes would appear in API docs,
and we want to use any consistently.
Instead, rewrite 'any' to 'interface{}' in cmd/dist for those directories
when preparing the bootstrap copy.

A few files changed as a result of running gofmt -w
not because of interface{} -&gt; any but because they
hadn't been updated for the new //go:build lines.

Fixes #49884.

Change-Id: Ie8045cba995f65bd79c694ec77a1b3d1fe01bb09
Reviewed-on: https://go-review.googlesource.com/c/go/+/368254
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>all: update references to symbols moved from io/ioutil to io</title>
<updated>2020-10-20T18:41:18Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2020-10-16T04:49:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1b09d430678d4a6f73b2443463d11f75851aba8a'/>
<id>urn:sha1:1b09d430678d4a6f73b2443463d11f75851aba8a</id>
<content type='text'>
The old ioutil references are still valid, but update our code
to reflect best practices and get used to the new locations.

Code compiled with the bootstrap toolchain
(cmd/asm, cmd/dist, cmd/compile, debug/elf)
must remain Go 1.4-compatible and is excluded.
Also excluded vendored code.

For #41190.

Change-Id: I6d86f2bf7bc37a9d904b6cee3fe0c7af6d94d5b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/263142
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/http: set Content-Length:0 for empty PATCH requests as with POST, PATCH</title>
<updated>2020-08-24T16:53:02Z</updated>
<author>
<name>Segflow</name>
<email>asselmeher@gmail.com</email>
</author>
<published>2020-08-24T13:42:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=fb5c3eabd16bbeea28ee8a11d29a31cf5ed124dd'/>
<id>urn:sha1:fb5c3eabd16bbeea28ee8a11d29a31cf5ed124dd</id>
<content type='text'>
Sets Content-Length:0 for nil bodies in PATCH requests, as we already do for  POST and PUT requests.

RFC 2616 mentions that unless a method’s Content-Length is forbidden it can send one.
In the wild, we’ve found that Microsoft Azure’s DataLake Gen2 storage API https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/update deliberately rejects PATCH requests without a Content-Length, yet there is no workaround for setting that header when trying to flush the content of a file which was uploaded in a previous request.

Fixes #40978

Change-Id: Ib0a623b907d827a1c5ee431dca3c41024fa291c5
GitHub-Last-Rev: 12a3903f2bc22bcc4f5f8e2abcc3922b612b8871
GitHub-Pull-Request: golang/go#40991
Reviewed-on: https://go-review.googlesource.com/c/go/+/250039
Run-TryBot: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/http: use iotest.ErrReader in tests</title>
<updated>2020-08-21T21:53:38Z</updated>
<author>
<name>Carlos Alexandro Becker</name>
<email>caarlos0@gmail.com</email>
</author>
<published>2020-08-21T08:01:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e5da468c51ad13a08730dc7890311915eefd2199'/>
<id>urn:sha1:e5da468c51ad13a08730dc7890311915eefd2199</id>
<content type='text'>
Updates #38781

Change-Id: I16a66904167ca4c0e916619b4da1dd23795b3ab2
GitHub-Last-Rev: 45054235a009cf776030bc951ba9a2a2a02c13e9
GitHub-Pull-Request: golang/go#40864
Reviewed-on: https://go-review.googlesource.com/c/go/+/249037
Run-TryBot: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Emmanuel Odeke &lt;emm.odeke@gmail.com&gt;
</content>
</entry>
<entry>
<title>net/url, net/http: reject control characters in URLs</title>
<updated>2019-01-23T19:31:46Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2019-01-23T19:09:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=829c5df58694b3345cb5ea41206783c8ccf5c3ca'/>
<id>urn:sha1:829c5df58694b3345cb5ea41206783c8ccf5c3ca</id>
<content type='text'>
This is a more conservative version of the reverted CL 99135 (which
was reverted in CL 137716)

The net/url part rejects URLs with ASCII CTLs from being parsed and
the net/http part rejects writing them if a bogus url.URL is
constructed otherwise.

Updates #27302
Updates #22907

Change-Id: I09a2212eb74c63db575223277aec363c55421ed8
Reviewed-on: https://go-review.googlesource.com/c/159157
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Filippo Valsorda &lt;filippo@golang.org&gt;
</content>
</entry>
<entry>
<title>net/http: make Transport respect {X-,}Idempotency-Key header</title>
<updated>2018-11-14T21:07:02Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2018-11-05T16:26:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=bfd9b94069e74b0c6516a045cbb83bf1024a1269'/>
<id>urn:sha1:bfd9b94069e74b0c6516a045cbb83bf1024a1269</id>
<content type='text'>
Fixes #19943

Change-Id: I5e0fefe44791d7b3556095d726c2a753ec551ef2
Reviewed-on: https://go-review.googlesource.com/c/147457
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>net/http: flesh out Transport's HTTP/1 CONNECT+bidi support to match HTTP/2</title>
<updated>2018-10-12T15:00:32Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2018-07-10T21:39:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=da6c168378b4c1deb2a731356f1f438e4723b8a7'/>
<id>urn:sha1:da6c168378b4c1deb2a731356f1f438e4723b8a7</id>
<content type='text'>
Fixes #17227

Change-Id: I0f8964593d69623b85d5759f6276063ee62b2915
Reviewed-on: https://go-review.googlesource.com/c/123156
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
<entry>
<title>Revert "go/printer: forbid empty line before first comment in block"</title>
<updated>2017-12-01T01:12:26Z</updated>
<author>
<name>Joe Tsai</name>
<email>thebrokentoaster@gmail.com</email>
</author>
<published>2017-12-01T00:59:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b53088a63436ac49d2344a733a50d529b5f7244e'/>
<id>urn:sha1:b53088a63436ac49d2344a733a50d529b5f7244e</id>
<content type='text'>
This reverts commit 08f19bbde1b01227fdc2fa2d326e4029bb74dd96.

Reason for revert:
The changed transformation takes effect on a larger set
of code snippets than expected.

For example, this:
    func foo() {

        // Comment
        bar()

    }
becomes:
    func foo() {
        // Comment
        bar()

    }

This is an unintended consequence.

Change-Id: Ifca88d6267dab8a8170791f7205124712bf8ace8
Reviewed-on: https://go-review.googlesource.com/81335
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Run-TryBot: Joe Tsai &lt;joetsai@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>go/printer: forbid empty line before first comment in block</title>
<updated>2017-11-02T18:17:22Z</updated>
<author>
<name>Joe Tsai</name>
<email>joetsai@digital-static.net</email>
</author>
<published>2017-10-20T00:31:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=08f19bbde1b01227fdc2fa2d326e4029bb74dd96'/>
<id>urn:sha1:08f19bbde1b01227fdc2fa2d326e4029bb74dd96</id>
<content type='text'>
To improve readability when exported fields are removed,
forbid the printer from emitting an empty line before the first comment
in a const, var, or type block.
Also, when printing the "Has filtered or unexported fields." message,
add an empty line before it to separate the message from the struct
or interfact contents.

Before the change:
&lt;&lt;&lt;
type NamedArg struct {

        // Name is the name of the parameter placeholder.
        //
        // If empty, the ordinal position in the argument list will be
        // used.
        //
        // Name must omit any symbol prefix.
        Name string

        // Value is the value of the parameter.
        // It may be assigned the same value types as the query
        // arguments.
        Value interface{}
        // contains filtered or unexported fields
}
&gt;&gt;&gt;

After the change:
&lt;&lt;&lt;
type NamedArg struct {
        // Name is the name of the parameter placeholder.
        //
        // If empty, the ordinal position in the argument list will be
        // used.
        //
        // Name must omit any symbol prefix.
        Name string

        // Value is the value of the parameter.
        // It may be assigned the same value types as the query
        // arguments.
        Value interface{}

        // contains filtered or unexported fields
}
&gt;&gt;&gt;

Fixes #18264

Change-Id: I9fe17ca39cf92fcdfea55064bd2eaa784ce48c88
Reviewed-on: https://go-review.googlesource.com/71990
Run-TryBot: Joe Tsai &lt;thebrokentoaster@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
</content>
</entry>
</feed>
