{"action":"opened","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/2117","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/2117/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/2117/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/2117/events","html_url":"https://github.com/mholt/caddy/issues/2117","id":313614380,"number":2117,"title":"PANIC : invalid WriteHeader code 0","user":{"login":"suconghou","id":4580719,"avatar_url":"https://avatars3.githubusercontent.com/u/4580719?v=4","gravatar_id":"","url":"https://api.github.com/users/suconghou","html_url":"https://github.com/suconghou","followers_url":"https://api.github.com/users/suconghou/followers","following_url":"https://api.github.com/users/suconghou/following{/other_user}","gists_url":"https://api.github.com/users/suconghou/gists{/gist_id}","starred_url":"https://api.github.com/users/suconghou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suconghou/subscriptions","organizations_url":"https://api.github.com/users/suconghou/orgs","repos_url":"https://api.github.com/users/suconghou/repos","events_url":"https://api.github.com/users/suconghou/events{/privacy}","received_events_url":"https://api.github.com/users/suconghou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-12T07:52:53Z","updated_at":"2018-04-12T07:52:53Z","closed_at":null,"author_association":"NONE","body":"\r\nCaddy 0.10.12 (unofficial)\r\n\r\nuse caddy with php-fpm\r\n\r\n Caddyfile\r\n```text\r\nxxxx:9098\r\ntls off\r\ngzip\r\nroot /data/\r\nfastcgi / 127.0.0.1:9000 php\r\n```\r\n\r\nthe backend is nextcloud run in php-fpm \r\nthe broswer send `PROPFIND` request to http://xxxx:9098/remote.php/webdav/\r\n\r\n```\r\ncurl 'http://xxxx:9098/remote.php/webdav/' -X PROPFIND -H 'Cookie: nc_sameSiteCookielax=true; nc_sameSiteCookiestrict=true; oc_sessionPassphrase=789fmGgf7LOAn2bKnwJJ9ocKbYVrX04XYgWjfYxm5lilRd8kgwXoeNIbKsTD20WFZCgSj2J6mvN%2BxGdDy5YWRgRzQJiZVO8Uciy2v9O86JyMi6DlIf1mLon2JXjvBS5c; _ga=GA1.2.191332580.1522131691; ocpfsn3rqwyq=4belbrmp3vjg1bi3bjobuicm8n' -H 'requesttoken: 7Bct7jj7T4e8w4tvDorcdG2F8IwcA0gE/6N4sO0SJGA=:mlVktlKhfL79+t4qOLy+Ez7fxM0tdQBBk9Yc55oiCwc=' -H 'Origin: http://xxxx:9098' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36' -H 'Content-Type: application/xml; charset=UTF-8' -H 'Accept: */*' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'Depth: 1' --data-binary $'<?xml version=\"1.0\"?>\\n<d:propfind  xmlns:d=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\">\\n  <d:prop>\\n    <d:getlastmodified />\\n    <d:getetag />\\n    <d:getcontenttype />\\n    <d:resourcetype />\\n    <oc:fileid />\\n    <oc:permissions />\\n    <oc:size />\\n    <d:getcontentlength />\\n    <nc:has-preview />\\n    <nc:mount-type />\\n    <oc:tags />\\n    <oc:favorite />\\n    <oc:comments-unread />\\n    <oc:owner-display-name />\\n    <oc:share-types />\\n  </d:prop>\\n</d:propfind>' --compressed\r\ncurl: (61) Error while processing content unencoding: invalid code lengths set\r\n```\r\n\r\ncaddy logs PANIC and broswer got 500 Internal Server Error\r\n```\r\n12/Apr/2018:07:46:31 +0000 [PANIC /remote.php/webdav/] /usr/local/go/src/net/http/server.go:1070 - invalid WriteHeader code 0\r\n\r\n```\r\n"}}
{"actor":{"display_login":"suconghou"}}