fs.py 文件源码

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

项目:django-rest-framework-webdav 作者: pellaeon 项目源码 文件源码
def read(self):
        response = HttpResponse()
        full_path = self.get_abs_path().encode('utf-8')
        if self.quote:
            full_path = urllib.parse.quote(full_path)
        response['X-SendFile'] = full_path
        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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号