Skip to content

Commit ed05d6a

Browse files
Copilotomgitsads
andauthored
chore: revert unintended handler test formatting
Agent-Logs-Url: https://github.com/github/github-mcp-server/sessions/49811f97-33b0-476c-8811-419dee2a5318 Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
1 parent 709b07d commit ed05d6a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkg/http/handler_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -639,33 +639,33 @@ func TestStaticConfigEnforcement(t *testing.T) {
639639
// and rejects requests with "application/json; charset=utf-8".
640640
func TestContentTypeHandling(t *testing.T) {
641641
tests := []struct {
642-
name string
643-
contentType string
642+
name string
643+
contentType string
644644
expectUnsupportedMedia bool
645645
}{
646646
{
647-
name: "exact application/json is accepted",
648-
contentType: "application/json",
647+
name: "exact application/json is accepted",
648+
contentType: "application/json",
649649
expectUnsupportedMedia: false,
650650
},
651651
{
652-
name: "application/json with charset=utf-8 should be accepted",
653-
contentType: "application/json; charset=utf-8",
652+
name: "application/json with charset=utf-8 should be accepted",
653+
contentType: "application/json; charset=utf-8",
654654
expectUnsupportedMedia: false,
655655
},
656656
{
657-
name: "application/json with charset=UTF-8 should be accepted",
658-
contentType: "application/json; charset=UTF-8",
657+
name: "application/json with charset=UTF-8 should be accepted",
658+
contentType: "application/json; charset=UTF-8",
659659
expectUnsupportedMedia: false,
660660
},
661661
{
662-
name: "completely wrong content type is rejected",
663-
contentType: "text/plain",
662+
name: "completely wrong content type is rejected",
663+
contentType: "text/plain",
664664
expectUnsupportedMedia: true,
665665
},
666666
{
667-
name: "empty content type is rejected",
668-
contentType: "",
667+
name: "empty content type is rejected",
668+
contentType: "",
669669
expectUnsupportedMedia: true,
670670
},
671671
}

0 commit comments

Comments
 (0)