flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [01/12] git commit: [flex-asjs] [refs/heads/develop] - use header constants
Date Sun, 16 Apr 2017 05:53:23 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 159abcc9c -> 9e4b62d43


use header constants


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/318bdf2a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/318bdf2a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/318bdf2a

Branch: refs/heads/develop
Commit: 318bdf2a8cb4e0527fe9a2150b56e44a0be8cf1a
Parents: 159abcc
Author: Justin Mclean <jmclean@apache.org>
Authored: Sun Apr 16 10:39:18 2017 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Sun Apr 16 10:39:18 2017 +1000

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/net/BinaryUploader.as | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/318bdf2a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/BinaryUploader.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/BinaryUploader.as
b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/BinaryUploader.as
index 035f753..31854c4 100644
--- a/frameworks/projects/Network/src/main/flex/org/apache/flex/net/BinaryUploader.as
+++ b/frameworks/projects/Network/src/main/flex/org/apache/flex/net/BinaryUploader.as
@@ -589,8 +589,8 @@ package org.apache.flex.net
                 }
                 
                 if (binaryData) {
-                    element.setRequestHeader('Content-length', binaryData.length.toString());
-                    element.setRequestHeader('Connection', 'close');
+                    element.setRequestHeader(HTTPHeader.CONTENT_LENGTH, binaryData.length.toString());
+                    element.setRequestHeader(HTTPHeader.CONNECTION, 'close');
                     element.send(binaryData);
                 } else {
                     element.send();
@@ -641,9 +641,9 @@ package org.apache.flex.net
          *  @productversion FlexJS 0.0
          */        
         COMPILE::SWF
-        protected function completeHandler(event:flash.events.Event):void
-        {
-            dispatchEvent(new Event(event.type));
+        protected function completeHandler(event:flash.events.Event):void
+        {
+            dispatchEvent(new Event(event.type));
         }
         
         /**
@@ -655,10 +655,10 @@ package org.apache.flex.net
             var element:XMLHttpRequest = this.element as XMLHttpRequest;
             if (element.readyState === 2) {
                 _status = element.status;
-                dispatchEvent('httpResponseStatus');
-                dispatchEvent('httpStatus');
+                dispatchEvent(HTTPConstants.RESPONSE_STATUS);
+                dispatchEvent(HTTPConstants.STATUS);
             } else if (element.readyState === 4) {
-                dispatchEvent('complete');
+                dispatchEvent(HTTPConstants.COMPLETE);
             }
         }
         


Mime
View raw message