Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safair cannot open the page #6

Closed
zhmushan opened this issue Dec 5, 2018 · 2 comments
Closed

Safair cannot open the page #6

zhmushan opened this issue Dec 5, 2018 · 2 comments

Comments

@zhmushan
Copy link
Contributor

zhmushan commented Dec 5, 2018

import { serve } from 'https://deno.land/x/net@4457b04/http.ts'
const s = serve('0.0.0.0:8000')

async function main() {
  for await (const req of s) {
    req.respond({ body: new TextEncoder().encode('Hello')})
  }
}

main()

image

@FrankFang
Copy link

Try the latest version
deno -r yourfile.ts --allow-net

@zhmushan
Copy link
Contributor Author

zhmushan commented Dec 7, 2018

@FrankFang great! This problem has been fixed.

@zhmushan zhmushan closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants