@@ -36,7 +36,7 @@ public void handle(HttpExchange exchange) throws IOException {
3636 Map <String , String > queryMap = TextUtils .queryToMap (exchange .getRequestURI ().getQuery ());
3737
3838 if (queryMap .containsKey ("moderator" ) && queryMap .containsKey ("channel" )) {
39- if (exchange .getRequestURI ().toString ().equals ("/commands/followage" )) {
39+ if (exchange .getRequestURI ().toString ().startsWith ("/commands/followage" )) {
4040 TokenHandle tokenHandle = NightbotCommandsWebServer .INSTANCE
4141 .getTokenHandle (queryMap .get ("moderator" ), "moderator:read:followers" );
4242 if (tokenHandle != null ) {
@@ -100,7 +100,7 @@ public void handle(HttpExchange exchange) throws IOException {
100100
101101 HTTPUtils .throwError (exchange , response );
102102 }
103- } else if (exchange .getRequestURI ().toString ().equals ("/commands/quote" )) {
103+ } else if (exchange .getRequestURI ().toString ().startsWith ("/commands/quote" )) {
104104 TokenHandle tokenHandle = NightbotCommandsWebServer .INSTANCE
105105 .getTokenHandle (queryMap .get ("moderator" ), "moderator:read:followers" );
106106 if (tokenHandle != null ) {
@@ -163,7 +163,7 @@ public void handle(HttpExchange exchange) throws IOException {
163163
164164 HTTPUtils .throwError (exchange , response );
165165 }
166- } else if (exchange .getRequestURI ().toString ().equals ("/commands/addquote" )) {
166+ } else if (exchange .getRequestURI ().toString ().startsWith ("/commands/addquote" )) {
167167 TokenHandle tokenHandle = NightbotCommandsWebServer .INSTANCE
168168 .getTokenHandle (queryMap .get ("moderator" ), "moderator:read:followers" );
169169 if (tokenHandle != null ) {
@@ -222,7 +222,7 @@ public void handle(HttpExchange exchange) throws IOException {
222222
223223 HTTPUtils .throwError (exchange , response );
224224 }
225- } else if (exchange .getRequestURI ().toString ().equals ("/commands/delquote" )) {
225+ } else if (exchange .getRequestURI ().toString ().startsWith ("/commands/delquote" )) {
226226 TokenHandle tokenHandle = NightbotCommandsWebServer .INSTANCE
227227 .getTokenHandle (queryMap .get ("moderator" ), "moderator:read:followers" );
228228 if (tokenHandle != null ) {
@@ -295,7 +295,7 @@ public void handle(HttpExchange exchange) throws IOException {
295295
296296 HTTPUtils .throwError (exchange , response );
297297 }
298- } else if (exchange .getRequestURI ().toString ().equals ("/commands/quotes" )) {
298+ } else if (exchange .getRequestURI ().toString ().startsWith ("/commands/quotes" )) {
299299 TokenHandle tokenHandle = NightbotCommandsWebServer .INSTANCE
300300 .getTokenHandle (queryMap .get ("moderator" ), "moderator:read:followers" );
301301 if (tokenHandle != null ) {
0 commit comments