File tree Expand file tree Collapse file tree
main/java/com/ultimecia/http
test/java/com/ultimecia/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ public HttpMethod getMethod() {
1414 return method ;
1515 }
1616
17+ public String getOriginalHttpVersion () {
18+ return originalHttpVersion ;
19+ }
20+
21+ public HttpVersion getBestCompatibleHttpVersion () {
22+ return bestCompatiableHttpVersion ;
23+ }
24+
1725 void setMethod (String methodName ) throws HttpParsingException {
1826 for (HttpMethod method :HttpMethod .values ()){
1927 if (methodName .equals (method .name ())){
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ void parseHttpRequestUnsupportedHttpVersion() {
118118 );
119119 fail ();
120120 } catch (HttpParsingException e ) {
121- assertEquals (e .getErrorCode (), HttpStatusCodes .SERVER_ERROR_505_HTTP_VERSION_NOT_SUPPORTED );
121+ assertEquals (e .getErrorCode (), HttpStatusCodes .SERVER_ERROR_505_VERSION_NOT_SUPPORTED );
122122 }
123123 }
124124
You can’t perform that action at this time.
0 commit comments