Export to GitHub

weed-fs - issue #38

Content type and mime type


Posted on Jul 29, 2013 by Swift Rhino
  • Run the master with default replicationType=001.
  • Run 2 volumes server.

I uploaded the file, its name = "uploader.pl" In the first volume, the file is not GZippable because mtype = multipart/form-data. In the replica volume, the file is GZippable because mtype = string=text/x-perl.

--> The data in the volume and its replica volume are different

I uploaded the patch to fix this issue.

Attachments

Comment #1

Posted on Jul 29, 2013 by Swift Rhino

The attachment

Attachments

Comment #2

Posted on Jul 29, 2013 by Grumpy Cat

Thanks for the patch. I checked in another fix to make sure also copy the mime type when replicating. Please check whether that works for you.

Comment #3

Posted on Jul 30, 2013 by Grumpy Cat

Let me know whether the fix works for you.

Comment #4

Posted on Jul 30, 2013 by Swift Rhino

Hi Chris, It's OK.

Thanks, Hieu Tran

Comment #5

Posted on Jul 30, 2013 by Grumpy Cat

Thanks for confirming the fix!

Status: Verified

Labels:
Type-Defect Priority-Medium