Skip to content

Commit

Permalink
WebDAV service update + Leftover erroneous config parameter check (#273)
Browse files Browse the repository at this point in the history
* fix pasted value

* added missing header x-requested-with
  • Loading branch information
refs authored and labkode committed Sep 26, 2019
1 parent db6cf7d commit d0a98ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/revad/svcs/httpsvcs/ocdavsvc/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *svc) doOptions(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Credentials", "true")
w.Header().Set("Access-Control-Allow-Methods", allow)
w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Type, Depth, Ocs-Apirequest, If-Match, If-None-Match, Destination")
w.Header().Set("Access-Control-Allow-Headers", "Authorization, X-Requested-With, Content-Type, Depth, Ocs-Apirequest, If-Match, If-None-Match, Destination")
w.Header().Set("Content-Type", "application/xml")
w.Header().Set("Allow", allow)
w.Header().Set("DAV", "1, 2")
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/fs/owncloud/owncloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (c *config) init(m map[string]interface{}) {
c.Scan = true
}
// default to autocreate if not configured
if _, ok := m["scan"]; !ok {
if _, ok := m["autocreate"]; !ok {
c.Autocreate = true
}
}
Expand Down

0 comments on commit d0a98ac

Please sign in to comment.