Skip to content

Commit

Permalink
removed hard-coded value
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteemann committed Aug 30, 2014
1 parent c05ec78 commit 4c13bb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/HttpServer/ApplicationEndpointServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void ApplicationEndpointServer::setupOptions (map<string, ProgramOptionsDescript
options[ApplicationServer::OPTIONS_SERVER + ":help-admin"]
("server.allow-method-override", &_allowMethodOverride, "allow HTTP method override using special headers")
("server.backlog-size", &_backlogSize, "listen backlog size")
("server.default-api-compatibility", &_defaultApiCompatibility, "default API compatibility version (e.g. 10300)")
("server.default-api-compatibility", &_defaultApiCompatibility, "default API compatibility version")
("server.keep-alive-timeout", &_keepAliveTimeout, "keep-alive timeout in seconds")
("server.reuse-address", &_reuseAddress, "try to reuse address")
;
Expand Down Expand Up @@ -250,8 +250,9 @@ bool ApplicationEndpointServer::parsePhase2 (ProgramOptions& options) {
}
}

if (_defaultApiCompatibility < 10300L) {
LOG_FATAL_AND_EXIT("invalid value for --server.default-api-compatibility. minimum allowed value is 10300");
if (_defaultApiCompatibility < HttpRequest::MinCompatibility) {
LOG_FATAL_AND_EXIT("invalid value for --server.default-api-compatibility. minimum allowed value is %d",
(int) HttpRequest::MinCompatibility);
}

// and return
Expand Down

0 comments on commit 4c13bb4

Please sign in to comment.