在线预览,我的Gitlab repo中的Web访问HTML文件"/>
gitlab html 在线预览,我的Gitlab repo中的Web访问HTML文件
截至目前,Gitlab不支持此功能.有一个功能要求:
目前,如果您查询Gitlab的原始html文件,它会设置某些HTTP标头,使其以文本/纯文本形式呈现:
$curl -I http://my-gitlab/user/project/raw/dev/doc/_book/index.html
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 20 Apr 2015 13:17:48 GMT
Content-Type: text/plain; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=edge
Content-Disposition: inline; filename="index.html"
Content-Transfer-Encoding: binary
Cache-Control: private
ETag: "b81191c550c47eae1ab4adf72dfd0c92"
Set-Cookie: request_method=HEAD; path=/
X-Request-Id: 04ae0499-2fdf-4f89-82ab-8392a8d6a076
X-Runtime: 0.019857
更多推荐
gitlab html 在线预览,我的Gitlab repo中的Web访问HTML文件
发布评论