Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReferer (0.1 sec)

  1. src/net/http/client_test.go

    // eofReaderFunc is an io.Reader that runs itself, and then returns io.EOF.
    type eofReaderFunc func()
    
    func (f eofReaderFunc) Read(p []byte) (n int, err error) {
    	f()
    	return 0, io.EOF
    }
    
    func TestReferer(t *testing.T) {
    	tests := []struct {
    		lastReq, newReq, explicitRef string // from -> to URLs, explicitly set Referer value
    		want                         string
    	}{
    		// don't send user:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top