From: Dominik Honnef Date: Thu, 10 Oct 2013 20:49:19 +0000 (-0400) Subject: misc/emacs: send correct content-length to the playground X-Git-Tag: go1.2rc2~40 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=950c284b110edf7ccd53d6254c9b1640e325a6f8;p=gostls13.git misc/emacs: send correct content-length to the playground R=adonovan CC=golang-dev https://golang.org/cl/14548049 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 1f35f7c0b4..f5d504d377 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -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)