comparison src/luan/webserver/RequestParser.java @ 1208:1e23b913c327

minor cookie parsing fix
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 08 Mar 2018 17:29:39 -0700
parents 9d3835e88204
children 220228bf1af9
comparison
equal deleted inserted replaced
1207:59289af20d9a 1208:1e23b913c327
183 String value = Util.urlDecode( parser.textFrom(start) ); 183 String value = Util.urlDecode( parser.textFrom(start) );
184 request.cookies.put(name,value); 184 request.cookies.put(name,value);
185 } 185 }
186 if( parser.endOfInput() ) 186 if( parser.endOfInput() )
187 return; 187 return;
188 require( parser.match("; ") ); 188 require( parser.match(';') );
189 parser.match(' '); // optional for bad browsers
189 } 190 }
190 } 191 }
191 192
192 193
193 private static final String contentTypeStart = "multipart/form-data; boundary="; 194 private static final String contentTypeStart = "multipart/form-data; boundary=";