refactor: change the format of www-authenticate by sigoden · Pull Request #312 · sigoden/dufs (original) (raw)

Some webdav client's (like microsoft-webdav) don't support multi-changes in single www-authenticate header as follows:

www-authenticate: Digest realm="DUFS", nonce="6571013fd6b54c9f061bd40b9587721040", qop="auth", Basic realm="DUFS"

Refactor this into two separate "www-authenticate" headers:

www-authenticate: Digest realm="DUFS", nonce="6571013fd6b54c9f061bd40b9587721040", qop="auth"
www-authenticate: Basic realm="DUFS"

close #307