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 | 681aebb419d5799b482f9bd0fb1a2d373858b0e7 (patch) | |
tree | 94007c1abfd09d5537755493a5fe0f52e6359cec /Timeline/Controllers/TimelineController.cs | |
parent | d089ad8774e5a6fbe0cd138e84c2a4af1e6a29af (diff) | |
download | timeline-681aebb419d5799b482f9bd0fb1a2d373858b0e7.tar.gz timeline-681aebb419d5799b482f9bd0fb1a2d373858b0e7.tar.bz2 timeline-681aebb419d5799b482f9bd0fb1a2d373858b0e7.zip |
Add integrated tests for image post.
Diffstat (limited to 'Timeline/Controllers/TimelineController.cs')
-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)
{
|