예제 #1
0
파일: git.py 프로젝트: Etrnls/etrnlabs
	def _get(self, repo, path, content_type):
		file = Repo(repo).get_named_file(path)
		if file:
			self.response.headers['Content-type'] = content_type
			self.response.out.write(file.read())
			file.close()
		else:
			self.error(404)