Skip to content

Commit

Permalink
Update upc-httpd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Nov 13, 2024
1 parent d7d92b5 commit e7a9e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/upc-httpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def generate(self, bctype, bcsize, bcrotate, imgtype):
cherrypy.response.headers['Content-Type'] = "image/jpeg"
if(file_ext[1] == "BMP"):
cherrypy.response.headers['Content-Type'] = "image/bmp"
if(file_ext[1] == "EPS"):
if(file_ext[1] == "PS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
if(file_ext[1] == "EPS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
Expand Down Expand Up @@ -266,7 +266,7 @@ def index(self, **params):
cherrypy.response.headers['Content-Type'] = "image/jpeg"
if(file_ext[1] == "BMP"):
cherrypy.response.headers['Content-Type'] = "image/bmp"
if(file_ext[1] == "EPS"):
if(file_ext[1] == "PS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
if(file_ext[1] == "EPS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
Expand Down Expand Up @@ -326,7 +326,7 @@ def generate(self, bctype, bcsize, bcrotate, imgtype):
cherrypy.response.headers['Content-Type'] = "image/jpeg"
if(file_ext[1] == "BMP"):
cherrypy.response.headers['Content-Type'] = "image/bmp"
if(file_ext[1] == "EPS"):
if(file_ext[1] == "PS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
if(file_ext[1] == "EPS"):
cherrypy.response.headers['Content-Type'] = "application/postscript"
Expand Down

0 comments on commit e7a9e6d

Please sign in to comment.