From 68d5e197a690792fb24d40d2190468fdfd38c9ed Mon Sep 17 00:00:00 2001 From: thatcher Date: Tue, 27 Apr 2010 07:48:02 -0400 Subject: [PATCH] corrected typo in variable name for xhr put/post with data --- src/platform/rhino/xhr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/rhino/xhr.js b/src/platform/rhino/xhr.js index 4ebc2cc9..d67ac2c9 100644 --- a/src/platform/rhino/xhr.js +++ b/src/platform/rhino/xhr.js @@ -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 ))); @@ -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();