Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: sky/tools/skygo/sky_server.go

Issue 808663002: Revert "Add POST support to XHR as well as .status and statusText support" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/tests/framework/xmlhttprequest/xhr-relative.sky ('k') | sky/tools/skygo/sky_server.sha1 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skygo/sky_server.go
diff --git a/sky/tools/skygo/sky_server.go b/sky/tools/skygo/sky_server.go
index e851487c09d4ab0fb9b0670031f299077ad5349e..c69fdd520420ddb5f3bc1db3d9a153bf90331fde 100644
--- a/sky/tools/skygo/sky_server.go
+++ b/sky/tools/skygo/sky_server.go
@@ -6,7 +6,6 @@ package main
import (
"flag"
- "io/ioutil"
"net/http"
"path"
"strings"
@@ -39,11 +38,6 @@ func main() {
genRoot := path.Join(root, "out", *configuration, "gen")
http.Handle("/", skyHandler(root))
- http.HandleFunc("/echo_post", func(w http.ResponseWriter, r *http.Request) {
- defer r.Body.Close()
- body, _ := ioutil.ReadAll(r.Body)
- w.Write(body)
- })
http.Handle("/mojo/public/", http.StripPrefix("/mojo/public/", skyHandler(path.Join(genRoot, "mojo", "public"))))
http.Handle("/mojo/services/", http.StripPrefix("/mojo/services/", skyHandler(path.Join(genRoot, "mojo", "services"))))
http.Handle("/sky/services/", http.StripPrefix("/sky/services/", skyHandler(path.Join(genRoot, "sky", "services"))))
« no previous file with comments | « sky/tests/framework/xmlhttprequest/xhr-relative.sky ('k') | sky/tools/skygo/sky_server.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698