You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The encodeURL should only encode when it is necessary and it’s adding a
session id to the URL for browsers that do not support cookies. The
framework doesn’t support cookies or session tracking so changed the
methods to return the plain urls. This addresses issue #27
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletResponse.java
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -91,25 +91,29 @@ public boolean containsHeader(String s) {
91
91
92
92
@Override
93
93
publicStringencodeURL(Strings) {
94
-
returnURLEncoder.encode(s);
94
+
// We do not support session tracking using the URL right now, we do not encode urls
95
+
returns;
95
96
}
96
97
97
98
98
99
@Override
99
100
publicStringencodeRedirectURL(Strings) {
100
-
returnURLEncoder.encode(s);
101
+
// Return the URL without changing it, we do not support session tracking using URLs
0 commit comments