unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.47k stars 176 forks source link

backslash #483

Closed Zulllus closed 4 years ago

Zulllus commented 4 years ago

Start sample app (EmbedIO.Samples). On the page "http://localhost:8877/api/people/first" I get response from server with some extra backslashes. {"Id": 1,"Name": "Mario Di Vece","Age": 31,"EmailAddress": "mario@unosquare.com","PhotoLocation": "http:\/\/www.gravatar.com\/avatar\/CEC856578C6F782F9A3FD0FF3C384CBA.png?s=100"} Also on the page "http://localhost:8877/#/people" avatar images broken. Maybe I'm doing something wrong.

Zulllus commented 4 years ago

Hm... :) issue tracker remove example bug: {"Id": 1,"Name": "Mario Di Vece","Age": 31,"EmailAddress": "mario@unosquare.com","PhotoLocation": "http:\/\/www.gravatar.com\/avatar\/CEC856578C6F782F9A3FD0FF3C384CBA.png?s=100"}

geoperez commented 4 years ago

@JCorrea13 can you help me to review this issue?

Zulllus commented 4 years ago

You have a bug in the Swan.Lite library, in the Json.Serializer.cs file in line 170.

.Append('\\')

I just comment this line. But this only heals the api. I didn’t tinker with broken pictures in html. Of course, I didn't deeply understanding the problem at all, only do heal for my specific task.