]> Cypherpunks repositories - gostls13.git/commit
net/http: implement sniffing for some fonts
authorEmmanuel Odeke <emm.odeke@gmail.com>
Tue, 27 Jun 2017 06:47:17 +0000 (00:47 -0600)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Nov 2017 19:25:48 +0000 (19:25 +0000)
commit1490cf67edc42ffd2abd6230f0caebebaf832a96
tree2657876c5682ee0009f7e9805672494d2943be32
parent6ecd843e7ceaeff11ec2feb1709fdbb34a7c334b
net/http: implement sniffing for some fonts

Implement sniffing for fonts:
* MS Font object  --> "application/vnd.ms-fontobject"
* ttf   --> "application/font-ttf"

* off   --> "application/font-off"
* otf   --> "application/font-off"

* cff   --> "application/font-cff"
* woff   --> "application/font-woff"

Fixes #20808

Change-Id: Ibe02a87d3c9d610c6a30e1b6c03f4e520404e70f
Reviewed-on: https://go-review.googlesource.com/47553
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/sniff.go
src/net/http/sniff_test.go