Skip to content

Clean up metadata generation

The metadata is messy. I propose the following changes:

  • Start every metadata entry that belongs to our server with fiphobo: (at the moment this is creation_time and bucket, soon also content_length (see MR !47 (merged) ) and maybe md5 ( issue #84 (closed) ) )
  • when creating the metadata headers for the response (in getmd, at the end of onRequest() and soon in get, too) don't check for every custom metadata, that we added, but eliminate all that start with fiphobo:
  • remove the bucket_name from all set_metadata functions, because it is too S3 specific anyway and instead add the bucketname at the same place where all metadata is added (=put_request_handler::onRequest())