Skip to content

Instantly share code, notes, and snippets.

@eightysteele
Created December 3, 2010 07:49
Show Gist options
  • Save eightysteele/726691 to your computer and use it in GitHub Desktop.
Save eightysteele/726691 to your computer and use it in GitHub Desktop.
class Tile(webapp.RequestHandler):
def post(self):
self.get()
def get(self):
url = self.request.path_info
png_data = TileService.get_png_tile(url)
if png_data:
self.response.headers['Content-Type'] = 'image/png'
self.response.out.write(png_data.getvalue())
else:
return 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment