Cédric Krier
ff2cc6dd21
Use safe_join in SharedDataMiddlewareIndex
...
issue10068
review333851027
2021-02-12 10:01:22 +01:00
Sergi Almacellas Abellana
7378890e1b
Do not use original_exception on werkzeug < 1.0
...
InternalServerError's original_exception argument was added on version 1.0
issue9632
review310551087
2020-10-20 13:02:35 +02:00
Cédric Krier
a22aae46de
Add debug logging when exception happens in dispatch request
...
issue9526
review310201002
2020-09-05 23:40:29 +02:00
Cédric Krier
db6cc1324d
Do not set WWW-Authenticate on XMLHttpRequest
...
Client using XMLHttpRequest should manage themselves the authentication.
So by not setting the header, we prevent the browser to raise an authentication
popup.
issue9535
review290791002
2020-08-29 18:21:01 +02:00
Cédric Krier
201258441a
Add defaults option to route
...
issue9472
review298191002
2020-07-23 00:05:35 +02:00
Cédric Krier
d7ed5f91f5
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:54 +01:00
Cédric Krier
35fec78c17
Load WSGI middleware from configuration
...
issue8807
review270521002
2019-12-28 18:00:01 +01:00
Daniel Möller
38bbe4d820
Pass app and request to wsgi error handlers
...
issue8548
review271931002
2019-09-02 18:25:12 +02:00
Cédric Krier
0fbf5cecd2
Add cache management on RPC
...
issue8233
review257231002
2019-04-08 10:10:40 +02:00
Cédric Krier
d49a38e313
Remove deprecation warning from werkzeug 0.15
...
Try to import SharedDataMiddleware and ProxyFix from middleware Apply
num_proxies to all x_* arguments of ProxyFix.
issue8235
review275141002
2019-04-08 10:02:54 +02:00
Cédric Krier
7e6d840dd9
Add base64 converter to URL map
...
issue7920
review45751002
2019-03-30 17:33:20 +01:00
Cédric Krier
ce0e68a287
Add HTML editor
...
issue8004
review54481002
2019-03-30 16:04:45 +01:00
Cédric Krier
14d5f911fb
Add Access-Control headers only on Response
...
The response may be a HTTPException which does not allow to customize the
headers.
issue8047
review49761002
2019-01-30 10:07:38 +01:00
Nicolas Évrard
ab61459443
Check CORS only when Host and Origin header differs
...
issue8033
review66531002
2019-01-24 11:06:36 +01:00
Cédric Krier
cef6ffead0
Allow to redirect bus request
...
issue7943
review48691003
2019-01-18 11:01:22 +01:00
Nicolas Évrard
eb04b82822
Add bus management
...
issue7537
review66341002
2018-08-30 11:15:01 +02:00
Cédric Krier
29d72c8746
Test mimetypes instead of the accept_mimetypes tuple
...
The property returns a list of tuple with mimetype, priority. The protocol
must be tested against only the mimetype instead of the tuple which will
always failed except if the type is exact.
issue7598
review64311002
2018-08-07 14:00:03 +02:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
e85a4891ac
Serve index.html for static directory
...
This allows to have shorter sao URL because it is without index.html.
Also this adds the support of static web root when launching WSGI app from a
different WSGI server.
issue6677
review45501002
2018-05-22 23:44:10 +02:00
Cédric Krier
e8ee8dedac
Manage 'X-Forwarded' headers from proxies
...
issue7110
review41031002
2018-02-14 19:23:11 +01:00
Cédric Krier
5a1bc137a3
Add a maximum size for request
...
issue6619
review38441002
2017-09-03 11:32:17 +02:00
Sergi Almacellas Abellana
6e92c8e3ba
Add environment variables to wsgi script
...
issue6344
review32131002
2017-07-19 10:10:04 +02:00
Cédric Krier
c0aa69fa23
Make wsgi app returns Internal Server Error on exception
...
If no protocol convert the data into a Response and if the data is an exception
it should be returned as an Internal Server Error instead of a succeed
response.
The exception can be used as description for the Internal Server Error.
issue6201
review31951002
2017-01-29 01:11:57 +01:00
Cédric Krier
965d010dc9
Add user application
...
issue5782
review28641002
2016-09-27 11:56:19 +02:00
Cédric Krier
16f0e84f25
Format the exception inside the try/except
...
Outside the try/except sys.exc_info returns None values, so we must format the
traceback inside the try/except.
issue5647
review23221002
2016-06-18 12:04:45 +02:00
Cédric Krier
8a4ba59b2d
Switch to WSGI API
...
issue4646
review20541003
2016-03-15 16:57:26 +01:00