1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/playground
Andrew Bonventre 9ae4309624 playground: set content-type header on non-appengine builds
Currently, when a POST request is made using code with build tag
+build !appengine it doesn't set the content-type header passed
to the function. This was breaking the case where a url-encoded
body (a code snippet's body and protocol version) was being POSTed
to golang.org/compile since it never set the content-type of the
request and the corresponding form values parsed out were empty as
a result.

Update golang/go#28080

Change-Id: I677ca01b2f5aecedbd13d1faa7a838ddc0199244
Reviewed-on: https://go-review.googlesource.com/c/140838
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2018-10-10 00:03:39 +00:00
..
socket playground/socket: deflake test, remove sleep 2016-12-11 02:33:14 +00:00
appengine.go playground: increase urlfetch timeout on GAE classic 2018-08-14 23:19:41 +00:00
common.go playground: increase urlfetch timeout on GAE classic 2018-08-14 23:19:41 +00:00
local.go playground: set content-type header on non-appengine builds 2018-10-10 00:03:39 +00:00