Skip to content

Commit

Permalink
Issue #349: Per-request query options are not preserved with the new …
Browse files Browse the repository at this point in the history
…$batch execution

Customer may retrieve the query from main request ($batch) that will create IQueryFeature into the Main HttpContext, Once created, it will cached in the main HttpContext. We should remove IQueryFeature and don't pass that to the sub request. Otherwise, the sub request query string will never be used.
  • Loading branch information
xuzhg committed Apr 22, 2022
1 parent 3c7e83f commit cae9277
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ private static HttpContext CreateHttpContext(HttpContext originalContext)
kvp.Key == typeof(IODataFeature) ||
kvp.Key == typeof(IItemsFeature) ||
kvp.Key == typeof(IHttpRequestFeature) ||
kvp.Key == typeof(IHttpResponseFeature))
kvp.Key == typeof(IHttpResponseFeature) ||
kvp.Key == typeof(IQueryFeature)) // Noted: we should not pass the QueryFeature from Main request to the sub request
{
continue;
}
Expand Down

0 comments on commit cae9277

Please sign in to comment.