Skip to content

Commit 2e9974c

Browse files
Fix: Update response handling for missing custom response file in LanguageModelRateLimitingPlugin
1 parent f317c90 commit 2e9974c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DevProxy.Plugins/Behavior/LanguageModelRateLimitingPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public override Task BeforeRequestAsync(ProxyRequestArgs e, CancellationToken ca
190190
else
191191
{
192192
Logger.LogRequest($"Custom behavior not set. {Configuration.CustomResponseFile} not found.", MessageType.Failed, new(e.Session));
193-
e.Session.GenericResponse("Custom response file not found.", HttpStatusCode.InternalServerError, Array.Empty<HttpHeader>());
193+
e.Session.GenericResponse("Custom response file not found.", HttpStatusCode.InternalServerError, []);
194194
state.HasBeenSet = true;
195195
}
196196
}

0 commit comments

Comments
 (0)