Skip to content

Commit

Permalink
Always register zmd mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Aug 11, 2021
1 parent 976920d commit a09103f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions internal/grpc/services/storageprovider/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@ package storageprovider

import (
"context"
"sort"

// "encoding/json"
"fmt"
"net/url"
"os"
"path"
"sort"
"strconv"
"strings"

rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"

// link "github.com/cs3org/go-cs3apis/cs3/sharing/link/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
"github.com/cs3org/reva/pkg/appctx"
"github.com/cs3org/reva/pkg/errtypes"
Expand Down Expand Up @@ -178,6 +174,9 @@ func New(m map[string]interface{}, ss *grpc.Server) (rgrpc.Service, error) {
if len(xsTypes) == 0 {
return nil, errtypes.NotFound("no available checksum, please set in config")
}
if c.MimeTypes == nil {
c.MimeTypes = map[string]string{".zmd": "application/compressed-markdown"}
}

registerMimeTypes(c.MimeTypes)

Expand Down
2 changes: 1 addition & 1 deletion internal/http/services/appprovider/appprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

package ocmd
package appprovider

import (
"context"
Expand Down

0 comments on commit a09103f

Please sign in to comment.