Skip to content

Commit

Permalink
Update syntax for format string
Browse files Browse the repository at this point in the history
Co-Authored-By: duper51 <ianotto24@gmail.com>
  • Loading branch information
webknjaz and ian-otto committed Apr 11, 2019
1 parent 3f7a1ab commit ae98c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cherrypy/lib/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def _serve_fileobj(fileobj, content_type, content_length, debug=False):
# Return a multipart/byteranges response.
response.status = '206 Partial Content'
boundary = make_boundary()
ct = 'multipart/byteranges; boundary=%s' % boundary
ct = 'multipart/byteranges; boundary={}'.format(boundary)
response.headers['Content-Type'] = ct
if 'Content-Length' in response.headers:
# Delete Content-Length header so finalize() recalcs it.
Expand Down

0 comments on commit ae98c9b

Please sign in to comment.