File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Microsoft.OpenApi.Hidi Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ public static OpenApiDocument FixReferences(OpenApiDocument document)
184
184
return doc ;
185
185
}
186
186
187
- private static Stream GetStream ( string openapi )
187
+ private static Stream GetStream ( string input )
188
188
{
189
189
Stream stream ;
190
- if ( openapi . StartsWith ( "http" ) )
190
+ if ( input . StartsWith ( "http" ) )
191
191
{
192
192
var httpClient = new HttpClient ( new HttpClientHandler ( )
193
193
{
@@ -196,11 +196,11 @@ private static Stream GetStream(string openapi)
196
196
{
197
197
DefaultRequestVersion = HttpVersion . Version20
198
198
} ;
199
- stream = httpClient . GetStreamAsync ( openapi ) . Result ;
199
+ stream = httpClient . GetStreamAsync ( input ) . Result ;
200
200
}
201
201
else
202
202
{
203
- var fileInput = new FileInfo ( openapi ) ;
203
+ var fileInput = new FileInfo ( input ) ;
204
204
stream = fileInput . OpenRead ( ) ;
205
205
}
206
206
You can’t perform that action at this time.
0 commit comments