aspnet / HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
382 stars 193 forks source link

ParsingHelpers.GetHeaderSplit - Check if values is empty before parsing #1056

Closed snakefoot closed 6 years ago

snakefoot commented 6 years ago

Not calling GetHeaderSplitImplementation will skip the allocation of a yield-state-machine:

https://github.com/aspnet/HttpAbstractions/blob/ec176b2e40699c24cc1c0e3bde8a828e93fe67c7/src/Microsoft.AspNetCore.Http.Abstractions/Internal/ParsingHelpers.cs#L19-L23

snakefoot commented 6 years ago

Continue at https://github.com/aspnet/AspNetCore/issues/3737