SEC-2573: RequestHeaderRequestMatcher constructor argument name has typo
This commit is contained in:
parent
8baf82532c
commit
2b3becf666
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -75,14 +75,14 @@ public final class RequestHeaderRequestMatcher implements RequestMatcher {
|
|||
*
|
||||
* @param expectedHeaderName
|
||||
* the name of the expected header. Cannot be null
|
||||
* @param expectedHeaderName
|
||||
* @param expectedHeaderValue
|
||||
* the expected header value or null if the value does not matter
|
||||
*/
|
||||
public RequestHeaderRequestMatcher(String expectedHeaderName,
|
||||
String exepctedHeaderName) {
|
||||
String expectedHeaderValue) {
|
||||
Assert.notNull(expectedHeaderName, "headerName cannot be null");
|
||||
this.expectedHeaderName = expectedHeaderName;
|
||||
this.expectedHeaderValue = exepctedHeaderName;
|
||||
this.expectedHeaderValue = expectedHeaderValue;
|
||||
}
|
||||
|
||||
public boolean matches(HttpServletRequest request) {
|
||||
|
@ -100,4 +100,4 @@ public final class RequestHeaderRequestMatcher implements RequestMatcher {
|
|||
+ expectedHeaderName + ", expectedHeaderValue="
|
||||
+ expectedHeaderValue + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue