summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add tests for #602 bugMantas2020-12-311-2/+7
| | | | | | | | | | | | | | | | | | | | It looks that #602 is gone, but I'm not sure when exactly it was fixed. I see that there is a suspicious change [here](https://github.com/bottlepy/bottle/commit/d85a6983ceedacd9ab9afbcd027139d8773b67ac): environ['PATH_INFO'] = path.encode('latin1').decode('utf8', 'ignore') Where original cause of the error was removed and replaced by `'ignore'`. Also fixed deprecation warnings, where: @self.subapp.route('') Does exactly same thing as this: @self.subapp.route('/test/<test>') Where `''` is passed to `route()`, then `makelist()` utility assumes that nothing is passed and falls back to path autogeneration from callbackf unction. Not sure if this is expected behaviour?
* change list to tupleSergBobrovsky2020-12-311-1/+1
|
* remove redundant round bracketsSergBobrovsky2020-12-311-1/+1
|
* redundant bracketsSergBobrovsky2020-12-311-2/+2
|
* remove useless assignmentSergBobrovsky2020-12-311-1/+1
| | | look 13 lines down
* some shorteningsSergBobrovsky2020-12-311-4/+1
|
* fix erroneous expressionSergBobrovsky2020-12-311-1/+1
| | | | | | | | from standart module "operator" ``` def is_not(a, b): "Same as a is not b." return a is not b ```
* Do not split query strings on `;` anymore.Marcel Hellkamp2020-11-111-1/+1
| | | | | | | | | | | Using `;` as a separator instead of `&` was allowed a long time ago, but is now obsolete and actually invalid according to the 2014 W3C recommendations. Even if this change is technically backwards-incompatible, no real-world application should depend on broken behavior. If you REALLY need this functionality, monkey-patch the _parse_qsl() function. # Conflicts: # bottle.py
* Correct a typo in bottle.pyFelix Yan2020-10-301-1/+1
|
* Fixed some typos in the release notes for 0.13Felix Breidenstein2020-06-021-1/+1
|
* reuse port in Bjoern adapterRui Carmo2020-06-021-1/+1
|
* Fix broken link to WSGI specification (#1210)Wouter Wijsman2020-04-111-2/+2
| | | * Fixed link to WSGI Specification
* fix #1155: Catastrophic backtracking issue in template parser.Marcel Hellkamp2020-01-031-1/+1
| | | | Related to #1194
* fix #1194: Regular expression catastrophic backtracking in ↵Marcel Hellkamp2020-01-031-1/+1
| | | | bottle.Router.rule_syntax
* Fix catastrophic backtracking issue in header parsing regular expression.Marcel Hellkamp2020-01-031-1/+1
| | | | | | The affected pattern is only used from a single non-public function, which in turn is not actually used anywhere. It's in dead code. No security issue.
* Revert "fix #1186: Bottle fails to find templates on windows"Marcel Hellkamp2019-12-201-2/+3
| | | | This reverts commit 085f18615fe8ab63588eebfd25bb90337aac2ba0.
* gunicorn: switch to use BaseApplicationRobert Coup2019-12-191-4/+5
| | | | This means configuration is only pulled from what is supplied through Bottle, not (for example) re-parsed from the commandline. Follows documented approach at http://docs.gunicorn.org/en/stable/custom.html
* fix test case张酉夫2019-12-191-1/+1
| | | | setting expires with naive datetime is treated as UTC time
* refine parse_date张酉夫2019-12-191-1/+1
|
* fix date formatting for non-English locales张酉夫2019-12-192-19/+27
|
* fix typo in the Route class docstringvascop2019-12-181-1/+1
|
* Removed circle-ci and travis-ci in favor of GitHub actions.Marcel Hellkamp2019-12-185-109/+4
|
* Fixup for 5c52eb0Marcel Hellkamp2019-12-182-11/+10
|
* fix #1186: Bottle fails to find templates on windowsMarcel Hellkamp2019-12-181-3/+2
| | | | | | os.sep contains a backslash on windows, but os.path.abspath() normalizes paths to forward slashes. Hard-coding a forward slash on any platform is actually more correct here.
* fix #1187: Allow non-ASCII characters in status_lineMarcel Hellkamp2019-12-182-1/+25
| | | | Uncommon, but valid.
* Merge branch 'backend-testing' of https://github.com/hartwork/bottle into ↵Marcel Hellkamp2019-12-1814-129/+72
|\ | | | | | | | | | | | | | | | | | | master. This patch-set includes two breaking changes: * "rocket" server adapter was removed, as it does not support Python 3 and is unmaintained. It will be marked as deprectated retrospectively in 0.12 * The "aiohttp" server adapter now uses aiohttp-wsgi instead of aiohttp. It was never part of 0.12 (stable), so changing this should be fine.
| * travis: Drop end-of-life Python 3.4Sebastian Pipping2019-12-091-1/+0
| |
| * ci: Do not tolerate import errors for 2.7 and 3.6 on TravisSebastian Pipping2019-12-091-3/+5
| |
| * aiohttp: Move from aiohttp<2 to aiohttp-wsgiSebastian Pipping2019-12-093-18/+7
| |
| * uvloop: Pass loop to aiohttp to fix backend "uvloop"Sebastian Pipping2019-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Backtrace was: Traceback (most recent call last): File "[..]/lib/python3.6/site-packages/aiohttp/server.py", line 239, in start httpstream = reader.set_parser(self._request_parser) File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 199, in set_parser self.unset_parser() File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 209, in unset_parser if self._loop.is_closed(): AttributeError: 'NoneType' object has no attribute 'is_closed'
| * ci: Install aiohttp<2 with aiohttp.wsgi for backends "aiohttp" and "uvloop"Sebastian Pipping2019-12-092-2/+2
| | | | | | | | | | Commit dropping aiohttp.wsgi upstream: https://github.com/aio-libs/aiohttp/commit/9218c264d57c633bc21cb7a14cd7890a272d4e34
| * rocket: Drop support for dead backend "rocket"Sebastian Pipping2019-12-0912-71/+2
| |
| * tests: Limit backend "aiohttp" to Python 3Sebastian Pipping2019-12-091-0/+1
| |
| * tests: Limit backend "diesel" to Python 2Sebastian Pipping2019-12-092-2/+3
| | | | | | | | | | Python 3 support is broken, see: https://github.com/dieseldev/diesel/issues/104
| * tests: Stop testing wsgiref twiceSebastian Pipping2019-12-091-1/+1
| | | | | | | | Once from TestServer and once from TestServerAdapter_wsgiref
| * tests: Adapt TestServer blacklist to Python versionSebastian Pipping2019-12-091-0/+14
| | | | | | | | Based on knowledge from travis_setup.sh
| * travis: Resolve some travis_setup.sh code duplicationSebastian Pipping2019-12-091-7/+11
| |
| * tests: Make servertest.py friendly to test discoverySebastian Pipping2019-12-091-31/+32
|/ | | | .. by moving code out of module scope and into a function.
* RefactoringMarcel Hellkamp2019-12-091-12/+10
|
* Added tests for #1125 fix.Marcel Hellkamp2019-12-081-3/+23
|
* Merge branch 'defnull-1175'Marcel Hellkamp2019-12-081-9/+10
|\
| * fix #1174,#1175: Allow cookie SameSite=NoneMarcel Hellkamp2019-12-081-9/+10
| |
* | fix #1167: Allow listening to unix socket for gunicorn server adapterMarcel Hellkamp2019-12-081-3/+10
|/
* Run gh actions on pull requestsMarcel Hellkamp2019-12-081-1/+1
|
* run_tests.yml: run five tests in parallelChristian Clauss2019-12-081-1/+1
| | | Speed up testing by running all five versions of Python in parallel.
* Updated documentation on SimpleTemplate and embedded blocks. (#1028)Vinay Sajip2019-12-011-0/+15
| | | | | * Updated documentation on SimpleTemplate and embedded blocks. * Addressed review comments.
* redirect() raises HTTPResponse and not HTTPErrorThomas2019-12-011-1/+1
|
* Fix syntax in login-login recipeOz Tiram2019-12-011-2/+2
| | | | | Previously, the example yielded SyntaxError. Adding an equal sign fixes the assertion syntax.
* Fix typoAshwin Ramaswami2019-12-011-1/+1
|
* Move to github actions (#1183)Marcel Hellkamp2019-12-012-0/+37
|