Closed shaunxu closed 8 years ago
This is probably fine, since the browser is not required to accept all your PUSHes. Does it happen in Chromium or in Firefox? Could you please try both?
Just tried in Chrome 37.
Noticed that the code below causes browser cannot connect to Node, but if I specified the push file name and response file name with /
prefixed, browser will show the page displayed <img src="abc.png"></img>
string then Node was crashed.
Are you running this locally or on a remote server? You'll need to specify a hostname, if it is not a 127.0.0.1
.
I mean res.push('https://.../abc.png')
I ran it on local server, I mean https://localhost:12345/
. Do I need to specify the full path in res.push
?
It shouldn't be required on localhost, but on a remote server - yes.
It works when I followed the doc which pushes plain text but got "Error: Received rst: 1" when I tried to push an image binaries.