HttpStatusCode exception loses headers from HttpResponseRedirect

Issue #42 resolved
Brian McMurray created an issue

Currently, if you return a HttpResponseRedirect from your handler it is caught by the HttpStatusCode exception and split into HttpStatusCode.msg and HttpStatusCode.code. This loses any extra headers that may be set in the HttpResponse; in the case of redirects, the Location header.

The attached diff patches HttpStatusCode to instead transport the entire HttpResponse so that no unanticipated headers are lost.

Comments (1)

  1. Log in to comment