Skip to content

Commit b945ced

Browse files
committed
DRY fix for #113471
1 parent e7860c3 commit b945ced

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ def test(HandlerClass=BaseHTTPRequestHandler,
12931293
help='conform to this HTTP version '
12941294
'(default: %(default)s)')
12951295
parser.add_argument('-c', '--content-type', # parsed into content_type
1296-
default='application/octet-stream',
1296+
default=BaseHTTPRequestHandler.default_content_type,
12971297
help='sets default content type for unknown extensions')
12981298
parser.add_argument('port', default=8000, type=int, nargs='?',
12991299
help='bind to this port '

0 commit comments

Comments
 (0)