Changeset 383 for binary-improvements2/MapRendering/Web/Web.cs
- Timestamp:
- Aug 1, 2022, 1:16:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/Web.cs
r382 r383 164 164 response.ProtocolVersion = httpProtocolVersion; 165 165 166 // No game yet -> fail request 167 if (GameManager.Instance.World == null) { 168 response.StatusCode = (int) HttpStatusCode.ServiceUnavailable; 169 return; 170 } 171 172 if (request.Url == null) { 173 response.StatusCode = (int) HttpStatusCode.BadRequest; 174 return; 175 } 176 166 177 #if ENABLE_PROFILER 167 178 authSampler.Begin (); … … 172 183 #endif 173 184 174 175 185 //Log.Out ("Login status: conn!=null: {0}, permissionlevel: {1}", conn != null, permissionLevel); 176 177 186 178 187 if (conn != null) { … … 186 195 } 187 196 188 // No game yet -> fail request189 if (GameManager.Instance.World == null) {190 response.StatusCode = (int) HttpStatusCode.ServiceUnavailable;191 return;192 }193 194 197 string requestPath = request.Url.AbsolutePath; 195 198
Note:
See TracChangeset
for help on using the changeset viewer.