]> git.dolda2000.com Git - jsvc.git/commitdiff
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 b74cacea982f3956cc6baa4d08b718cd92b70401..d632cebd9535ca1c45db403d44f50f4b85a9a91e 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) {