Skip to content

Commit

Permalink
corrected typo in variable name for xhr put/post with data
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcher committed Apr 27, 2010
1 parent aebea64 commit 68d5e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/rhino/xhr.js
Expand Up @@ -68,7 +68,7 @@ Envjs.writeToTempFile = function(text, suffix){
* Used to read the contents of a local file
* @param {Object} url
*/
Envjs.readFromFile = function(url){
Envjs.readFromFile = function( url ){
var fileReader = new java.io.FileReader(
new java.io.File(
new java.net.URI( url )));
Expand Down Expand Up @@ -183,7 +183,7 @@ Envjs.connection = function(xhr, responseHandler, data){
}else if(data.length&&data.length>0){
if ( xhr.method == "PUT" || xhr.method == "POST" ) {
connection.setDoOutput(true);
voutstream = connection.getOutputStream();
outstream = connection.getOutputStream();
buffer = new java.lang.String(data).getBytes('UTF-8');
outstream.write(buffer, 0, buffer.length);
outstream.close();
Expand Down

0 comments on commit 68d5e19

Please sign in to comment.