Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldPanicOnCopyError (0.37 sec)

  1. src/net/http/httputil/reverseproxy.go

    var inOurTests bool // whether we're in our own tests
    
    // shouldPanicOnCopyError reports whether the reverse proxy should
    // panic with http.ErrAbortHandler. This is the right thing to do by
    // default, but Go 1.10 and earlier did not, so existing unit tests
    // weren't expecting panics. Only panic in our own tests, or when
    // running under the HTTP server.
    func shouldPanicOnCopyError(req *http.Request) bool {
    	if inOurTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top