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

[HTTP] Body's Promise is blocked when no body is present #538

Closed
ConsoleTVs opened this issue Jul 14, 2019 · 0 comments
Closed

[HTTP] Body's Promise is blocked when no body is present #538

ConsoleTVs opened this issue Jul 14, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@ConsoleTVs
Copy link

ConsoleTVs commented Jul 14, 2019

  • Code to replicate:
import { serve } from "https://deno.land/std@v0.11.0/http/server.ts";
const s = serve("0.0.0.0:8000");

async function main() {
  for await (const req of s) {
    const body = await req.body()
    console.log('Request body:', body)
    req.respond({ body: new TextEncoder().encode("Hello World\n") });
  }
}

main();

image

image

image

@ry ry added the bug Something isn't working label Jul 14, 2019
inverted-capital pushed a commit to dreamcatcher-tech/napps that referenced this issue Oct 24, 2024
This change applies `encodeURIComponent()` to the dynamic parts of the
share URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants