]> Cypherpunks repositories - gostls13.git/commitdiff
misc/emacs: send correct content-length to the playground
authorDominik Honnef <dominik.honnef@gmail.com>
Thu, 10 Oct 2013 20:49:19 +0000 (16:49 -0400)
committerAlan Donovan <adonovan@google.com>
Thu, 10 Oct 2013 20:49:19 +0000 (16:49 -0400)
R=adonovan
CC=golang-dev
https://golang.org/cl/14548049

misc/emacs/go-mode.el

index 1f35f7c0b43d61a77b6c4feef6a2fcaa22dc43ce..f5d504d37785a5ebb5d8e1591cb57cc571aff8e7 100644 (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)