-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox does a CORS request (OPTION method) before sending POST requests. #194
Conversation
…onclose netserver.close will fail because netserver will be undefined.
…and over again just makes no sense + it hurt performance.. Not to mention.. that it's already included.
Removed `.test` suffix from tests Updated node-websocket-client
[ocd] fix
… is the default encoding for http.ServerResponse.write replaced string.length with Buffer.byteLength in jsonp-polling.js, listener.js and xhr-polling.js because content-length header requires number of bytes and not the number of symbols in string
Starting converting back to spaces to comply with node coding standards
Typo fix in flash socket warning message
Removed accidental 1==2 for serving the not modified status code for the client Finished websocket test
might be better off to chekc arguments.length and ignore the check within the loop all together for those cases
…sts. This fix handles this correctly and returns some headers to tell the browser that POST requests are okay.
Awesome, did this solve 'all' your connection issues? |
I Hope so, actually I didn't put it into production yet but I will later this night. I will also try to figure out what's wrong with XHR-Multipart. Am 23.04.2011 um 21:35 schrieb [email protected]:
|
I'm closing this one due to the fact that a preflight request is only needed when the Content-Type is other than text/plain. This is the case for POST right now, but only because we're unnecessarily encoding the payload in the application/x-www-form-urlencoded content type, which has been addressed now. Thanks again, as usual, @saschagehlich. |
Handle errors and advice
Firefox does a CORS request (OPTION method) before sending POST requests. This fix handles this correctly and returns some headers to tell the browser that POST requests are okay.