Changeset 156 for binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/ApiHandler.cs
- Timestamp:
- Sep 3, 2014, 12:04:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/ApiHandler.cs
r154 r156 26 26 resp.StatusCode = (int)HttpStatusCode.Forbidden; 27 27 } else { 28 foreach (KeyValuePair<string, WebAPI> kvp in apis) { 29 if (apiName.StartsWith (kvp.Key)) { 30 kvp.Value.HandleRequest (req, resp, user); 31 return; 28 try { 29 foreach (KeyValuePair<string, WebAPI> kvp in apis) { 30 if (apiName.StartsWith (kvp.Key)) { 31 kvp.Value.HandleRequest (req, resp, user); 32 return; 33 } 32 34 } 35 } catch (Exception e) { 36 resp.StatusCode = (int)HttpStatusCode.InternalServerError; 33 37 } 34 38 }
Note:
See TracChangeset
for help on using the changeset viewer.