Index: experimental/webtry/templates/index.html |
diff --git a/experimental/webtry/templates/index.html b/experimental/webtry/templates/index.html |
index d2ba8592cb08743278868ab1094c82bb15a75a45..80fc874b65a3a5b5f4f54d5625d4d570a03679e5 100644 |
--- a/experimental/webtry/templates/index.html |
+++ b/experimental/webtry/templates/index.html |
@@ -77,7 +77,8 @@ void draw(SkCanvas* canvas) { |
req.addEventListener('error', codeError); |
req.overrideMimeType('application/json'); |
req.open('POST', '.', true); |
- req.send(code.value); |
+ req.setRequestHeader('content-type', 'application/json'); |
+ req.send(JSON.stringify({"code": code.value})); |
} |
</script> |
</body> |