Created
March 6, 2015 22:03
-
-
Save InTEGr8or/a03276e162ff213e7d60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Strip newline characters from ReasonPhrase. | |
ex.Response.ReasonPhrase = msg.Replace("\\r", string.Empty).Replace("\\n", string.Empty).Replace(Environment.NewLine, string.Empty); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/12519561/throw-httpresponseexception-or-return-request-createerrorresponse