{"action":"created","issue":{"url":"https://api.github.com/repos/phoboslab/Ejecta/issues/574","labels_url":"https://api.github.com/repos/phoboslab/Ejecta/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/phoboslab/Ejecta/issues/574/comments","events_url":"https://api.github.com/repos/phoboslab/Ejecta/issues/574/events","html_url":"https://github.com/phoboslab/Ejecta/issues/574","id":119441876,"number":574,"title":"[BUG] About XmlHTTPRequest , call \"send\" once , server got  3 requests","user":{"login":"finscn","id":288367,"avatar_url":"https://avatars.githubusercontent.com/u/288367?v=3","gravatar_id":"","url":"https://api.github.com/users/finscn","html_url":"https://github.com/finscn","followers_url":"https://api.github.com/users/finscn/followers","following_url":"https://api.github.com/users/finscn/following{/other_user}","gists_url":"https://api.github.com/users/finscn/gists{/gist_id}","starred_url":"https://api.github.com/users/finscn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finscn/subscriptions","organizations_url":"https://api.github.com/users/finscn/orgs","repos_url":"https://api.github.com/users/finscn/repos","events_url":"https://api.github.com/users/finscn/events{/privacy}","received_events_url":"https://api.github.com/users/finscn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T08:31:03Z","updated_at":"2015-11-30T08:50:39Z","closed_at":null,"body":"Call XmlHTTPRequest.send  once , server got 3 requests.\r\n\r\nClien code: \r\n```\r\nvar url=\"http://mytestserver/something\"\r\nvar xhr = new XMLHttpRequest();\r\nxhr.open(\"GET\", url, true);\r\nxhr.send();\r\n```\r\n\r\nServer code is very simple (use node.js + express)\r\n```\r\n\"use strict\";\r\n\r\nvar port = process.argv[2] || 8088;\r\n\r\nvar util = require(\"util\");\r\nvar express = require('express'),\r\n    http = require('http');\r\n\r\n\r\nvar app = express();\r\n\r\napp.get(\"/*\", function(req, res) {\r\n    console.log(\"====================\");\r\n    console.log(\"req.headers\", req.headers);\r\n    console.log(\"req.url\", req.url);\r\n    res.end(\"ok\")\r\n});\r\n\r\n\r\nvar httpServer = http.createServer(app);\r\nhttpServer.listen(port, function() {\r\n    console.log(\"HTTP Server listening on \" + port);\r\n\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/phoboslab/Ejecta/issues/comments/160559208","html_url":"https://github.com/phoboslab/Ejecta/issues/574#issuecomment-160559208","issue_url":"https://api.github.com/repos/phoboslab/Ejecta/issues/574","id":160559208,"user":{"login":"finscn","id":288367,"avatar_url":"https://avatars.githubusercontent.com/u/288367?v=3","gravatar_id":"","url":"https://api.github.com/users/finscn","html_url":"https://github.com/finscn","followers_url":"https://api.github.com/users/finscn/followers","following_url":"https://api.github.com/users/finscn/following{/other_user}","gists_url":"https://api.github.com/users/finscn/gists{/gist_id}","starred_url":"https://api.github.com/users/finscn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finscn/subscriptions","organizations_url":"https://api.github.com/users/finscn/orgs","repos_url":"https://api.github.com/users/finscn/repos","events_url":"https://api.github.com/users/finscn/events{/privacy}","received_events_url":"https://api.github.com/users/finscn/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T08:50:39Z","updated_at":"2015-11-30T08:50:39Z","body":"Another bug:\r\nserver responses \"ok\" , but  in callback   client's  xhr.respoonseText is a  empty object , console.log display\"\r\n\r\n```\r\nJS LOG: {}\r\n```"}}