1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

misc/emacs: send correct content-length to the playground

R=adonovan
CC=golang-dev
https://golang.org/cl/14548049
This commit is contained in:
Dominik Honnef 2013-10-10 16:49:19 -04:00 committed by Alan Donovan
parent 47bb44fd5b
commit 950c284b11

View File

@ -774,7 +774,10 @@ link in the kill ring."
(let* ((url-request-method "POST")
(url-request-extra-headers
'(("Content-Type" . "application/x-www-form-urlencoded")))
(url-request-data (buffer-substring-no-properties start end))
(url-request-data
(encode-coding-string
(buffer-substring-no-properties start end)
'utf-8))
(content-buf (url-retrieve
"http://play.golang.org/share"
(lambda (arg)