fs.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:django-rest-framework-webdav 作者: pellaeon 项目源码 文件源码
def read(self):
        response = HttpResponse()
        response['X-Accel-Redirect'] = url_join(self.prefix, self.get_path().encode('utf-8'))
        response['X-Accel-Charset'] = 'utf-8'
        response['Content-Type'] = mimetypes.guess_type(self.displayname)
        response['Content-Length'] = self.getcontentlength
        response['Last-Modified'] = http_date(self.getlastmodified)
        response['ETag'] = self.getetag
        raise ResponseException(response)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号