Skip to content

Instantly share code, notes, and snippets.

@cardil
Created January 29, 2021 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cardil/c7c2e0dc7da9b925bbe96a0f3c023731 to your computer and use it in GitHub Desktop.
Save cardil/c7c2e0dc7da9b925bbe96a0f3c023731 to your computer and use it in GitHub Desktop.
Reporduction for Wathola sender is affected by Coordinated Omission Problem
package main
import (
"fmt"
"html"
"log"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
time.Sleep(2 * time.Second)
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
log.Fatal(http.ListenAndServe(":22110", nil))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment