Sending the orginal status code rather than hardcoded status code
This commit is contained in:
parent
910110f86d
commit
13d9f2d9e8
@ -47,7 +47,7 @@ public class EncryptResponseAttribute : TypeFilterAttribute
|
||||
{
|
||||
Content = encryptedText,
|
||||
ContentType = "text/plain",
|
||||
StatusCode = 200
|
||||
StatusCode = objectResult.StatusCode ?? 200
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user