aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/binary-cache-store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-14 15:26:01 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-15 16:50:19 +0100
commit45c70382ac152107d40956c6a3ab8c329086733f (patch)
treef99d8dddffd7ed5ae1b823572c9bbaf0cf2af276 /src/libstore/binary-cache-store.hh
parent8b1d65bebe5af8960ba813e1233f2596a3ffebb7 (diff)
S3BinaryCacheStore: Set Content-Type
This is necessary for serving log files to browsers.
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r--src/libstore/binary-cache-store.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh
index 1c287056c..d42b1abd2 100644
--- a/src/libstore/binary-cache-store.hh
+++ b/src/libstore/binary-cache-store.hh
@@ -31,7 +31,9 @@ public:
virtual bool fileExists(const std::string & path) = 0;
- virtual void upsertFile(const std::string & path, const std::string & data) = 0;
+ virtual void upsertFile(const std::string & path,
+ const std::string & data,
+ const std::string & mimeType) = 0;
/* Return the contents of the specified file, or null if it
doesn't exist. */