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