Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Looks like HTML root file ref should contain JSON #30

Open
k41n opened this issue Jul 6, 2016 · 0 comments
Open

Looks like HTML root file ref should contain JSON #30

k41n opened this issue Jul 6, 2016 · 0 comments

Comments

@k41n
Copy link

k41n commented Jul 6, 2016

Hello!

Please check that. I was trying to write it from scratch but it was giving me 410 Gone on requesting index. So I took sample and was cutting it down until I got what is breaking things. It was JSON in HTML

In repo below requesting GET / will cause error. However if you will add any key:value inside JSON, it will work:

this does not work:

      <textarea id="pet" name="pet" cols="60" rows="15" class="form-control"
                onkeydown="updateUI()" onkeyup="updateUI()" onchange="updateUI()">{
}                            </textarea>

while this does:

      <textarea id="pet" name="pet" cols="60" rows="15" class="form-control"
                onkeydown="updateUI()" onkeyup="updateUI()" onchange="updateUI()">{
"a": "b"
}                            </textarea>

Please fixme if I am doing something wrong...

https://github.com/k41n/sr-mock

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant