Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Mar 25, 2024
1 parent b282c33 commit 2b7ec8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTTPie/Implement/HttpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async IAsyncEnumerable<HttpRequestMessageWrapper> ParseFileAsync(string f
}

var (variableName, variableValue) = (splits[0], splits[1]);
if variableValue.Length > 1 && ((variableValue[0] == '"' && variableValue[^1] == '"') || (variableValue[0] == '\'' && variableValue[^1] == '\'')))
if (variableValue.Length >= 1 && ((variableValue[0] == '"' && variableValue[^1] == '"') || (variableValue[0] == '\'' && variableValue[^1] == '\'')))
{
variableValue = variableValue.Length > 2 ? variableValue[1..^2] : string.Empty;
}
Expand Down

0 comments on commit 2b7ec8e

Please sign in to comment.