7yl4r / the-oregon-trajectory

:rocket: The Oregon Trail -- in SPAAACE!
http://7yl4r.github.io/the-oregon-trajectory/
GNU Affero General Public License v3.0
17 stars 6 forks source link

trustSrc() HTTP 404 error causing closed socket #41

Open BrianErikson opened 9 years ago

BrianErikson commented 9 years ago

127.0.0.1 - - [31/Mar/2015 19:53:51] "GET /%7B%7B::trustSrc(ghWatchBtn)%7D%7D HT TP/1.1" 404

and

127.0.0.1 - - [31/Mar/2015 19:53:51] "GET /%7B%7B::trustSrc(ghForkBtn)%7D%7D HT TP/1.1" 404

This error is caused quite frequently when hosted by the standard Python server, which causes the socket connection to close prematurely.

The section of problematic code causing this to be thrown is here and here

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10279844-trustsrc-http-404-error-causing-closed-socket?utm_campaign=plugin&utm_content=tracker%2F13859664&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F13859664&utm_medium=issues&utm_source=github).
BrianErikson commented 9 years ago

@7yl4r, do you know what this function does, or is supposed to do?

7yl4r commented 9 years ago

yeah, these are the github "fork" and "star" buttons, and that trustSrc function is a hack I had to put in so that angular would let them work.

I can look into it more, but I've been focusing on other things.