Lines 484-489
Link Here
|
484 |
doTestRewrite(config, request, expectedURI, expectedQueryString, null); |
484 |
doTestRewrite(config, request, expectedURI, expectedQueryString, null); |
485 |
} |
485 |
} |
486 |
|
486 |
|
|
|
487 |
@Test |
488 |
public void testUtf8WithBothQsFlagsLQSA() throws Exception { |
489 |
// Orig + rewritten QS |
490 |
doTestRewrite("RewriteRule ^/b/(.*)/(.*) /c/\u00A1$1?$2 [QSA]", "/b/%C2%A1/id=%C2%A1", "/c/%C2%A1%C2%A1", |
491 |
"id=%C2%A1"); |
492 |
} |
487 |
|
493 |
|
488 |
private void doTestRewrite(String config, String request, String expectedURI, |
494 |
private void doTestRewrite(String config, String request, String expectedURI, |
489 |
String expectedQueryString, String expectedAttributeValue) throws Exception { |
495 |
String expectedQueryString, String expectedAttributeValue) throws Exception { |
Lines 520-527
Link Here
|
520 |
} |
526 |
} |
521 |
|
527 |
|
522 |
if (expectedAttributeValue != null) { |
528 |
if (expectedAttributeValue != null) { |
523 |
String attrbuteValue = requestDesc.getAttribute("X-Test"); |
529 |
String attributeValue = requestDesc.getAttribute("X-Test"); |
524 |
Assert.assertEquals(expectedAttributeValue, attrbuteValue); |
530 |
Assert.assertEquals(expectedAttributeValue, attributeValue); |
525 |
} |
531 |
} |
526 |
} |
532 |
} |
527 |
} |
533 |
} |