Fixed an AcceptMap bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 13 Dec 2009 20:16:37 +0000 (21:16 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 13 Dec 2009 20:16:37 +0000 (21:16 +0100)
src/dolda/jsvc/util/AcceptMap.java

index b74cace..d632ceb 100644 (file)
@@ -81,10 +81,10 @@ public class AcceptMap implements Iterable<AcceptMap.Entry> {
                                e2.q = q;
                            flush = true;
                            st = "ap";
-                       } else if(st == "ap") {
+                       } else {
                            e.pars.put(key, val);
                        }
-                   } else {
+                   } else if(st == "ap") {
                        /* No known accept-params */
                    }
                    if(psep < 0) {