RequestHandler.cpp   RequestHandler.cpp 
skipping to change at line 138 skipping to change at line 138
} }
void RequestHandler::update(double deltaTime) void RequestHandler::update(double deltaTime)
{ {
apiController->update(deltaTime); apiController->update(deltaTime);
} }
void RequestHandler::service(HttpRequest &request, HttpResponse &response) void RequestHandler::service(HttpRequest &request, HttpResponse &response)
{ {
#define SERVER_HEADER "Stellarium RemoteControl " REMOTECONTROL_VERSION #define SERVER_HEADER "Stellarium RemoteControl " REMOTECONTROL_PLUGIN_VERS ION
response.setHeader("Server",SERVER_HEADER); response.setHeader("Server",SERVER_HEADER);
//try to support keep-alive connections //try to support keep-alive connections
if(QString::compare(request.getHeader("Connection"),"keep-alive",Qt: :CaseInsensitive)==0) if(QString::compare(request.getHeader("Connection"),"keep-alive",Qt: :CaseInsensitive)==0)
response.setHeader("Connection","keep-alive"); response.setHeader("Connection","keep-alive");
else else
response.setHeader("Connection","close"); response.setHeader("Connection","close");
if(usePassword) if(usePassword)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/