diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go
index 927f47b..0afa561 100644
--- a/src/encoding/json/encode.go
+++ b/src/encoding/json/encode.go
@@ -1123,29 +1123,33 @@ func typeFields(t reflect.Type) []field {
sort.Sort(byName(fields))
+ nameCache := map[string][]field{}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"image/gif" | |
"net/http" | |
"os" | |
) | |
func decodeGIF(url string) (*gif.GIF, error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat coverage.diff | grep '^\(-\|+\)' > actualDifferences.diff | |
--- h2-fileserver-coverage 2015-12-29 05:13:58.000000000 -0700 | |
+++ master-coverage 2015-12-29 05:13:29.000000000 -0700 | |
@@ -196,7 +196,7 @@ | |
-net/http/h2_bundle.go:2423: state 66.7% | |
+net/http/h2_bundle.go:2423: state 0.0% | |
@@ -222,10 +222,10 @@ | |
-net/http/h2_bundle.go:3016: processFrame 50.0% | |
+net/http/h2_bundle.go:3016: processFrame 45.5% | |
-net/http/h2_bundle.go:3095: processResetStream 62.5% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```diff | |
--- h2-coverage.txt 2015-12-29 03:59:30.000000000 -0700 | |
+++ master-coverage.txt 2015-12-29 04:03:45.000000000 -0700 | |
@@ -196,7 +196,7 @@ | |
net/http/h2_bundle.go:2415: CloseConn 0.0% | |
net/http/h2_bundle.go:2417: Flush 100.0% | |
net/http/h2_bundle.go:2419: HeaderEncoder 100.0% | |
-net/http/h2_bundle.go:2423: state 66.7% | |
+net/http/h2_bundle.go:2423: state 0.0% | |
net/http/h2_bundle.go:2439: setConnState 100.0% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
reComp = re.compile('^\.(?!(mydotfile1|mydotfile2))$', re.UNICODE) | |
def main(): | |
tests = ['.git', '.mydotfile', '.', '.mydotfile1', '.mydotfile2', 'other'] | |
regexs = dict(provided=reComp) | |
for key, regex in regexs.items(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
func main() { |
var tls = require('tls');
var fs = require('fs');
var options = {
// These are necessary only if using the client certificate authentication
key: fs.readFileSync('client-key.pem'),
cert: fs.readFileSync('client-cert.pem'),
// This is necessary only if the server uses the self-signed certificate