Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit e3b4519

Browse files
committed
Merge pull request #1786 from dodgex/1771_fix_cookie_detection
Fix cookie detection
2 parents 75dbc4f + d9db0d8 commit e3b4519

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • AndroidAnnotations/androidannotations-rest-spring/rest-spring/src/main/java/org/androidannotations/rest/spring/handler

‎AndroidAnnotations/androidannotations-rest-spring/rest-spring/src/main/java/org/androidannotations/rest/spring/handler/RestMethodHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private IJExpression setCookies(ExecutableElement executableElement, RestHolder
203203

204204
JForEach innerForEach = forLoopBody.forEach(getClasses().STRING, "thisCookieName", requestedCookiesVar);
205205
JBlock innerBody = innerForEach.body();
206-
JBlock thenBlock = innerBody._if(JExpr.invoke(rawCookieVar, "startsWith").arg(innerForEach.var()))._then();
206+
JBlock thenBlock = innerBody._if(JExpr.invoke(rawCookieVar, "startsWith").arg(innerForEach.var().plus("=")))._then();
207207

208208
// where does the cookie VALUE end?
209209
JInvocation valueEnd = rawCookieVar.invoke("indexOf").arg(JExpr.lit(';'));

0 commit comments

Comments
 (0)