@@ -639,33 +639,33 @@ func TestStaticConfigEnforcement(t *testing.T) {
639639// and rejects requests with "application/json; charset=utf-8".
640640func 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