Commit e0475f26 authored by Nir Noy's avatar Nir Noy
Browse files

FIxed #132 - rendering inline images

parent 3a2c7983
...@@ -250,8 +250,11 @@ namespace Svg ...@@ -250,8 +250,11 @@ namespace Svg
using (WebResponse webResponse = httpRequest.GetResponse()) using (WebResponse webResponse = httpRequest.GetResponse())
{ {
using (var stream = webResponse.GetResponseStream()) using (var stream = webResponse.GetResponseStream())
{
if (stream.CanSeek)
{ {
stream.Position = 0; stream.Position = 0;
}
if (uri.LocalPath.EndsWith(".svg", StringComparison.InvariantCultureIgnoreCase)) if (uri.LocalPath.EndsWith(".svg", StringComparison.InvariantCultureIgnoreCase))
{ {
var doc = SvgDocument.Open<SvgDocument>(stream); var doc = SvgDocument.Open<SvgDocument>(stream);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment