forked from orbit-oss/flask
Don't lie to the user about POST redirects
This commit is contained in:
parent
bb1567dae4
commit
87f50fdc6f
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ class FormDataRoutingRedirect(AssertionError):
|
||||||
|
|
||||||
buf.append(' Make sure to directly send your %s-request to this URL '
|
buf.append(' Make sure to directly send your %s-request to this URL '
|
||||||
'since we can\'t make browsers or HTTP clients redirect '
|
'since we can\'t make browsers or HTTP clients redirect '
|
||||||
'with form data.' % request.method)
|
'with form data reliably or without user interaction.' %
|
||||||
|
request.method)
|
||||||
buf.append('\n\nNote: this exception is only raised in debug mode')
|
buf.append('\n\nNote: this exception is only raised in debug mode')
|
||||||
AssertionError.__init__(self, ''.join(buf).encode('utf-8'))
|
AssertionError.__init__(self, ''.join(buf).encode('utf-8'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue