2003/09/24 07:33:32
[org.ibex.core.git] / src / org / xwt / HTTP.java
index 19fc41c..50c71c9 100644 (file)
@@ -510,7 +510,7 @@ public class HTTP {
                 int i = super.read();
                 if (i == -1) throw new HTTPException("encountered end of stream while reading chunk length");
 
-                // FIXME: handle chunking extensions
+                // FEATURE: handle chunking extensions
                 if (i == '\r') {
                     super.read();    // LF
                     break;
@@ -755,8 +755,6 @@ public class HTTP {
                         try {
                             org.xwt.js.JS.Array arr = new org.xwt.js.JS.Array();
                             arr.addElement(((JS.Exn)e).getObject());
-                            // FIXME
-                            //XWT.recursivePrintObject.call();
                         } catch (Exception e2) {
                             Log.log(Platform.class, e);
                         }
@@ -787,11 +785,10 @@ public class HTTP {
                 Message.Q.add(new Message() {
                         public void perform() {
                             Box b = new Box();
-                            /* FIXME
-                            Template.getTemplate("org.xwt.builtin.proxy_authorization", null).apply(b, null, null, null, 0, 0, null);
+                            Template t = Template.getTemplate((Res)Main.builtin.get("org/xwt/builtin/proxy_authorization.xwt"));
+                            t.apply(b, null, 0, 0, null);
                             b.put("realm", realm);
                             b.put("proxyIP", proxyIP);
-                            */
                         }
                     });
 
@@ -804,12 +801,10 @@ public class HTTP {
 
         // ProxyAutoConfigRootScope ////////////////////////////////////////////////////////////////////
 
-        public static class ProxyAutoConfigRootScope extends JS.Scope {
+        public static class ProxyAutoConfigRootScope extends JS.GlobalScope {
 
             public ProxyAutoConfigRootScope() { super(null); }
         
-            // FIXME: needs "standard objects"
-
             public Object get(Object name) {
                 if (name.equals("isPlainHostName")) return isPlainHostName;
                 else if (name.equals("dnsDomainIs")) return dnsDomainIs;