Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestServerUnreadRequestBodyLittle (0.19 sec)

  1. src/net/http/serve_test.go

    		runTest(test)
    	}
    }
    
    // Under a ~256KB (maxPostHandlerReadBytes) threshold, the server
    // should consume client request bodies that a handler didn't read.
    func TestServerUnreadRequestBodyLittle(t *testing.T) {
    	setParallel(t)
    	defer afterTest(t)
    	conn := new(testConn)
    	body := strings.Repeat("x", 100<<10)
    	conn.readBuf.Write([]byte(fmt.Sprintf(
    		"POST / HTTP/1.1\r\n"+
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top