comparison src/luan/webserver/RequestParser.java @ 1237:275d1b52dbce

add Request.scheme
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Jun 2018 18:22:51 -0600
parents b99947af8b79
children c147e2e877e3
comparison
equal deleted inserted replaced
1236:5b9856045e51 1237:275d1b52dbce
106 && parser.match('.') 106 && parser.match('.')
107 && parser.inCharRange('0','9') 107 && parser.inCharRange('0','9')
108 ) ) 108 ) )
109 throw new ParseException(parser,"bad protocol"); 109 throw new ParseException(parser,"bad protocol");
110 request.protocol = parser.textFrom(start); 110 request.protocol = parser.textFrom(start);
111 request.scheme = "http";
111 } 112 }
112 113
113 114
114 private void parserHeaderField() throws ParseException { 115 private void parserHeaderField() throws ParseException {
115 String name = parseName(); 116 String name = parseName();