fix some Cookie models
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2269 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
639d5d3aa4
commit
74aaf36780
Binary file not shown.
|
@ -22,7 +22,7 @@ public class ServletRequest implements javax.servlet.ServletRequest {
|
|||
/**
|
||||
* The semantics of this are bogus ... be careful to hijack this.
|
||||
*/
|
||||
private static String getInputString() {
|
||||
protected static String getInputString() {
|
||||
return "some input string";
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,10 @@ public class HttpServletRequest
|
|||
}
|
||||
|
||||
public Cookie[] getCookies() {
|
||||
return null;
|
||||
Cookie cookie = new Cookie(getInputString(), getInputString());
|
||||
cookie.setComment(getInputString());
|
||||
return new Cookie[] { cookie } ;
|
||||
|
||||
}
|
||||
|
||||
public long getDateHeader(String name) {
|
||||
|
|
Loading…
Reference in New Issue