Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
net /
textproto /
[ HOME SHELL ]
Name
Size
Permission
Action
header.go
1.65
KB
-rw-r--r--
header_test.go
1.44
KB
-rw-r--r--
pipeline.go
2.93
KB
-rw-r--r--
reader.go
19.7
KB
-rw-r--r--
reader_test.go
10.75
KB
-rw-r--r--
textproto.go
3.68
KB
-rw-r--r--
writer.go
2.47
KB
-rw-r--r--
writer_test.go
1.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : header_test.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package textproto import "testing" type canonicalHeaderKeyTest struct { in, out string } var canonicalHeaderKeyTests = []canonicalHeaderKeyTest{ {"a-b-c", "A-B-C"}, {"a-1-c", "A-1-C"}, {"User-Agent", "User-Agent"}, {"uSER-aGENT", "User-Agent"}, {"user-agent", "User-Agent"}, {"USER-AGENT", "User-Agent"}, // Other valid tchar bytes in tokens: {"foo-bar_baz", "Foo-Bar_baz"}, {"foo-bar$baz", "Foo-Bar$baz"}, {"foo-bar~baz", "Foo-Bar~baz"}, {"foo-bar*baz", "Foo-Bar*baz"}, // Non-ASCII or anything with spaces or non-token chars is unchanged: {"üser-agenT", "üser-agenT"}, {"a B", "a B"}, // This caused a panic due to mishandling of a space: {"C Ontent-Transfer-Encoding", "C Ontent-Transfer-Encoding"}, {"foo bar", "foo bar"}, } func TestCanonicalMIMEHeaderKey(t *testing.T) { for _, tt := range canonicalHeaderKeyTests { if s := CanonicalMIMEHeaderKey(tt.in); s != tt.out { t.Errorf("CanonicalMIMEHeaderKey(%q) = %q, want %q", tt.in, s, tt.out) } } } // Issue #34799 add a Header method to get multiple values []string, with canonicalized key func TestMIMEHeaderMultipleValues(t *testing.T) { testHeader := MIMEHeader{ "Set-Cookie": {"cookie 1", "cookie 2"}, } values := testHeader.Values("set-cookie") n := len(values) if n != 2 { t.Errorf("count: %d; want 2", n) } }
Close