diff options
author | crupest <crupest@outlook.com> | 2020-03-12 19:12:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-12 19:12:15 +0800 |
commit | dfe715cec705c31b87f808b09c9fa1cb61e6583e (patch) | |
tree | 94007c1abfd09d5537755493a5fe0f52e6359cec /Timeline/Controllers | |
parent | 70af7808deca84ad2d118c5002989a98e1623450 (diff) | |
download | timeline-dfe715cec705c31b87f808b09c9fa1cb61e6583e.tar.gz timeline-dfe715cec705c31b87f808b09c9fa1cb61e6583e.tar.bz2 timeline-dfe715cec705c31b87f808b09c9fa1cb61e6583e.zip |
Add integrated tests for image post.
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r-- | Timeline/Controllers/TimelineController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Controllers/TimelineController.cs b/Timeline/Controllers/TimelineController.cs index 6e5438c4..58390c29 100644 --- a/Timeline/Controllers/TimelineController.cs +++ b/Timeline/Controllers/TimelineController.cs @@ -126,7 +126,7 @@ namespace Timeline.Controllers try
{
var data = await _service.GetPostData(name, id);
- return File(data.Data, data.Type, data.LastModified, new EntityTagHeaderValue(data.ETag));
+ return File(data.Data, data.Type, data.LastModified, new EntityTagHeaderValue($"\"{data.ETag}\""));
}
catch (TimelinePostNotExistException)
{
|