Mercurial Hosting > luan
diff src/luan/webserver/RequestParser.java @ 1256:c147e2e877e3
allow subclassing of HttpServicer
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 19 Sep 2018 20:15:16 -0600 |
parents | 275d1b52dbce |
children | e4d7a3114fa8 |
line wrap: on
line diff
--- a/src/luan/webserver/RequestParser.java Mon Sep 03 06:13:55 2018 -0600 +++ b/src/luan/webserver/RequestParser.java Wed Sep 19 20:15:16 2018 -0600 @@ -174,7 +174,11 @@ if( parser.match('=') ) { start = parser.currentIndex(); while( parser.noneOf(";") ); - String value = urlDecode( parser.textFrom(start) ); + String value = parser.textFrom(start); + int len = value.length(); + if( value.charAt(0)=='"' && value.charAt(len-1)=='"' ) + value = value.substring(1,len-1); + value = urlDecode(value); request.cookies.put(name,value); } if( parser.endOfInput() )