- Sort Score
- Result 10 results
- Languages All
Results 31 - 38 of 38 for dupes (0.17 sec)
-
src/net/http/transfer.go
// Hardening against HTTP request smuggling if len(contentLens) > 1 { // Per RFC 7230 Section 3.3.2, prevent multiple // Content-Length headers if they differ in value. // If there are dups of the value, remove the dups. // See Issue 16490. first := textproto.TrimString(contentLens[0]) for _, ct := range contentLens[1:] { if first != textproto.TrimString(ct) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 31.1K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/funcprops_test.go
// "dentries". // // Writing of expected results is complicated by closures and by // generics, where you can have multiple functions that all share the // same starting line. Currently we combine up all the dups and // closures into the single pre-func comment. func updateExpected(t *testing.T, testcase string, dentries []fnInlHeur, dcsites []encodedCallSiteTab) { nd := len(dentries) ues := mkUpexState(dentries)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 15K bytes - Viewed (0) -
src/net/http/pattern.go
if method != "" && method != "CONNECT" && rest != cleanPath(rest) { return nil, errors.New("non-CONNECT pattern with unclean path can never match") } seenNames := map[string]bool{} // remember wildcard names to catch dups for len(rest) > 0 { // Invariant: rest[0] == '/'. rest = rest[1:] off = len(s) - len(rest) if len(rest) == 0 { // Trailing slash. p.segments = append(p.segments, segment{wild: true, multi: true})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 16:36:30 UTC 2024 - 15.3K bytes - Viewed (0) -
src/internal/poll/fd_unix.go
return syscall.Fstat(fd.Sysfd, s) }) } // dupCloexecUnsupported indicates whether F_DUPFD_CLOEXEC is supported by the kernel. var dupCloexecUnsupported atomic.Bool // DupCloseOnExec dups fd and marks it close-on-exec. func DupCloseOnExec(fd int) (int, string, error) { if syscall.F_DUPFD_CLOEXEC != 0 && !dupCloexecUnsupported.Load() { r0, err := unix.Fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 04:09:44 UTC 2024 - 17.9K bytes - Viewed (0) -
src/os/exec/exec_test.go
} if err := c.Wait(); err == nil { t.Error("program unexpectedly exited successfully") } else { t.Logf("exit status: %v", err) } } // test that environment variables are de-duped. func TestDedupEnvEcho(t *testing.T) { t.Parallel() cmd := helperCommand(t, "echoenv", "FOO") cmd.Env = append(cmd.Environ(), "FOO=bad", "FOO=good") out, err := cmd.CombinedOutput() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
} // Sanity check. Enable if duplicates show up. if false { found := make(map[[16]byte]struct{}) for _, ver := range merged { if _, ok := found[ver.header.VersionID]; ok { panic("found dupe") } found[ver.header.VersionID] = struct{}{} } } return merged } type xlMetaBuf []byte // ToFileInfo converts xlMetaV2 into a common FileInfo datastructure
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 29 19:14:09 UTC 2024 - 63.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
dir int } dirNums := make(map[string]int) dirs := []string{""} files := []fileDir{} // Preprocess files to collect directories. This assumes that the // file table is already de-duped. for i, name := range unit.FileTable { name := expandFile(name) if len(name) == 0 { // Can't have empty filenames, and having a unique // filename is quite useful for debugging.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
field: "name", detail: dnsLabelErrMsg, }}, }, // More than one source field specified. { name: "more than one source", vol: core.Volume{ Name: "dups", VolumeSource: core.VolumeSource{ EmptyDir: &core.EmptyDirVolumeSource{}, HostPath: &core.HostPathVolumeSource{ Path: "/mnt/path", Type: newHostPathType(string(core.HostPathDirectory)),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)