You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-proxy-abstractions/ProxyUtils.cs
+15-17Lines changed: 15 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,7 @@
3
3
4
4
usingSystem.Reflection;
5
5
usingSystem.Text.RegularExpressions;
6
-
usingMicrosoft.Data.Sqlite;
7
6
usingTitanium.Web.Proxy.Http;
8
-
usingTitanium.Web.Proxy.Models;
9
7
10
8
namespaceMicrosoft.DevProxy.Abstractions;
11
9
@@ -61,28 +59,28 @@ public static bool IsGraphBetaUrl(Uri uri) =>
61
59
/// <param name="request">The http request for which response headers are being constructed</param>
62
60
/// <param name="requestId">string a guid representing the a unique identifier for the request</param>
63
61
/// <param name="requestDate">string representation of the date and time the request was made</param>
64
-
/// <returns>IList<HttpHeader> with defaults consistent with Microsoft Graph. Automatically adds CORS headers when the Origin header is present</returns>
/// <returns>IList<MockResponseHeader> with defaults consistent with Microsoft Graph. Automatically adds CORS headers when the Origin header is present</returns>
privatestaticstringBuildApiErrorMessage(Requestr)=>$"Some error was generated by the proxy. {(ProxyUtils.IsGraphRequest(r)?ProxyUtils.IsSdkRequest(r)?"":String.Join(' ',MessageUtils.BuildUseSdkForErrorsMessage(r)):"")}";
109
109
@@ -203,7 +203,7 @@ _urlsToWatch is null ||
203
203
if(_configuration.CustomResponseis not null)
204
204
{
205
205
varheaders=_configuration.CustomResponse.Headersis not null?
0 commit comments