Skip to content

Commit

Permalink
Merge pull request #6 from microsoftgraph/generate-snippets
Browse files Browse the repository at this point in the history
Fix broken test
  • Loading branch information
andrueastman authored Dec 8, 2020
2 parents aeeac95 + db05fa9 commit d070944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ApiDoctor.Validation/Http/HttpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static HttpRequest ParseHttpRequest(string requestString)
throw new HttpParserRequestException("Request contains an HTTP response.");

string url;
var httpVersion = components.Last().StartsWith("HTTP/") ? components[1] : "HTTP/1.1";
var httpVersion = components.Skip(1).First().StartsWith("HTTP/") ? components[1] : "HTTP/1.1";
if (components.Length > 2)
{
//Assume Odata Uri in the form https://graph.microsoft.com/beta/riskyUsers?$filter=riskLevel eq microsoft.graph.riskLevel'medium'
Expand Down Expand Up @@ -263,4 +263,4 @@ private enum ParserMode
Body
}
}
}
}

0 comments on commit d070944

Please sign in to comment.