adds access by circle to blog posts
This commit is contained in:
parent
9da7064791
commit
f25aa8ff97
32 changed files with 465 additions and 274 deletions
|
|
@ -112,7 +112,12 @@ namespace Yavsc.Formatters
|
|||
if (contentHeaders != null)
|
||||
SetFileName(contentHeaders, value.GetHashCode ().ToString ());
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sets the name of the file.
|
||||
/// </summary>
|
||||
/// <param name="contentHeaders">Content headers.</param>
|
||||
/// <param name="basename">Basename.</param>
|
||||
public static void SetFileName(HttpContentHeaders contentHeaders, string basename) {
|
||||
contentHeaders.ContentDisposition = new ContentDispositionHeaderValue ("attachment") {
|
||||
FileName = "doc-" + basename + ".pdf"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue