Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix py27 syntax errordefnull-noclen | Marcel Hellkamp | 2019-12-09 | 1 | -1/+2 |
| | |||||
* | Add support for non-empty requests with no Content-Length header. | Marcel Hellkamp | 2019-12-09 | 1 | -6/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | In some situations, a non-empty non-chunked request may lack a Content-Length header and still be valid: - HTTP/1.0 clients (default to 'Connection: close') - HTTP/1.1 clients with 'Connection: close' - WSGI server transparently decoding 'Transfer-Encoding: chunked' - WSGI middleware filtering the request body (e.g. gzip) In all these situations, 'wsgi.input' MUST NOT read across request boundaries and terminate at the end of the request body, because WSGI defines no other way to detect the end of the stream. Most WSGI servers or filtering middleware correctly set 'wsgi.input' to a limiting wrapper. They MAY signal this via the non-standard 'wsgi.input_terminated' flag, but since not limiting 'wsgi.input' would be clearly wrong, we can assume support for 'wsgi.input_terminated' (or 'Connection: close', which has the same effect) even if the flag is not set. This patch will cause bottle to read from 'wsgi.input' until it returns no more bytes if 'Content-Length' is not set. It will also throw an error if 'Content-Length' is set, but less than the expected number of bytes can be read. | ||||
* | Refactoring | Marcel Hellkamp | 2019-12-09 | 1 | -12/+10 |
| | |||||
* | Added tests for #1125 fix. | Marcel Hellkamp | 2019-12-08 | 1 | -3/+23 |
| | |||||
* | Merge branch 'defnull-1175' | Marcel Hellkamp | 2019-12-08 | 1 | -9/+10 |
|\ | |||||
| * | fix #1174,#1175: Allow cookie SameSite=None | Marcel Hellkamp | 2019-12-08 | 1 | -9/+10 |
| | | |||||
* | | fix #1167: Allow listening to unix socket for gunicorn server adapter | Marcel Hellkamp | 2019-12-08 | 1 | -3/+10 |
|/ | |||||
* | Run gh actions on pull requests | Marcel Hellkamp | 2019-12-08 | 1 | -1/+1 |
| | |||||
* | run_tests.yml: run five tests in parallel | Christian Clauss | 2019-12-08 | 1 | -1/+1 |
| | | | Speed up testing by running all five versions of Python in parallel. | ||||
* | Updated documentation on SimpleTemplate and embedded blocks. (#1028) | Vinay Sajip | 2019-12-01 | 1 | -0/+15 |
| | | | | | * Updated documentation on SimpleTemplate and embedded blocks. * Addressed review comments. | ||||
* | redirect() raises HTTPResponse and not HTTPError | Thomas | 2019-12-01 | 1 | -1/+1 |
| | |||||
* | Fix syntax in login-login recipe | Oz Tiram | 2019-12-01 | 1 | -2/+2 |
| | | | | | Previously, the example yielded SyntaxError. Adding an equal sign fixes the assertion syntax. | ||||
* | Fix typo | Ashwin Ramaswami | 2019-12-01 | 1 | -1/+1 |
| | |||||
* | Move to github actions (#1183) | Marcel Hellkamp | 2019-12-01 | 2 | -0/+37 |
| | |||||
* | Fix release steps in Makefile | Marcel Hellkamp | 2019-12-01 | 1 | -3/+2 |
| | |||||
* | #1179: Offer option to add custom headers in static_file | Marcel Hellkamp | 2019-12-01 | 1 | -4/+7 |
| | | | | Done a little bit diffeently than in the PR (never ever use mutable types as default values) but has the same effect. Closes #1179 | ||||
* | Gitignore .tox/ | Marcel Hellkamp | 2019-12-01 | 1 | -0/+1 |
| | |||||
* | Fix travis-ci builds (they dropped 2.7.3 support) | Marcel Hellkamp | 2019-08-30 | 1 | -6/+2 |
| | |||||
* | [bug] set default value for "Content-Length" | Luo Zhaoyu | 2019-08-30 | 1 | -1/+1 |
| | | | Setting default value as -1 when "Content-Length" is empty. If not, currently it will raise a ValueError | ||||
* | Be more consistent about supporting Python 3.4 to 3.7 | Sebastian Pipping | 2019-07-10 | 17 | -30/+21 |
| | |||||
* | Fix Python 3.7 collections.abc DeprecationWarning | Adam Johnson | 2019-07-10 | 1 | -1/+1 |
| | | | | | | | | Should fix this ``` /.../bin/bottle.py:87: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping as DictMixin ``` | ||||
* | current bottle only support 2.7 and above, json is stdlib | Hanaasagi | 2019-01-31 | 1 | -20/+12 |
| | |||||
* | fix failed test caused by ujson | Hanaasagi | 2019-01-31 | 2 | -3/+12 |
| | |||||
* | fix #1115: Some modules set __file__ as None | Marcel Hellkamp | 2018-12-13 | 1 | -1/+1 |
| | | | | | This is not allowed (the __file__ attribute MUST be either a string, or unset), but seems to happen anyway and is easy to work around in bottle. | ||||
* | fix #1111: Unicode multipart/form-data values in python3 | Marcel Hellkamp | 2018-12-11 | 2 | -3/+9 |
| | | | | | | Multipart form uploads are not affected by the WSGI/PEP-3333 'latin1' default encoding quirk and already properly decoded as utf8, so we have to disable FormsDict.recode_unicode for these. | ||||
* | Migrated to CircleCI 2.0 | Marcel Hellkamp | 2018-10-25 | 3 | -13/+54 |
| | |||||
* | fix #1106: SameSite cookie attribute fails when using redirect | Marcel Hellkamp | 2018-10-25 | 2 | -16/+44 |
| | | | | | - Accept `BaseRequest.set_cookie()` arguments in snake_case and lowercase form. This affects the `max_age` and `same_site` arguments. - Skip render/parse step when cloning SimpleCookie. | ||||
* | Normalized test and build setup | Marcel Hellkamp | 2018-10-25 | 24 | -111/+90 |
| | |||||
* | Added htmlcov and ide folders to .gitignore | Marcel Hellkamp | 2018-10-25 | 1 | -0/+8 |
| | |||||
* | Updated copyright year | Marcel Hellkamp | 2018-10-25 | 2 | -2/+2 |
| | | | | This is not how copyright notices work (the year is irrelevant) but an old year makes the project look unmaintained. | ||||
* | fix: STPL end keyword breaks when not on a separate line | Marcel Hellkamp | 2018-10-25 | 2 | -5/+17 |
| | | | | | | | | | This fix allows templates with the 'end' keyword in the same line as other code. %if 1: % some code; end Multiple 'end's in the same line to close multiple blocks whould also work now. | ||||
* | Remove Python 3.2 and 3.3 | cclauss | 2018-07-19 | 1 | -2/+0 |
| | |||||
* | Add Python 3.6 and 3.7 to PyPI page | cclauss | 2018-07-19 | 1 | -0/+2 |
| | | | Should modify the bottom left of https://pypi.org/project/bottle on the next [release](https://github.com/bottlepy/bottle/releases). | ||||
* | Travis CI: remove Python 3.3 and add Python 2.7 | cclauss | 2018-07-19 | 1 | -1/+6 |
| | | | | * Python 3.3 is went EOL last year https://devguide.python.org/#branchstatus * Python 3.7 is shipping https://github.com/travis-ci/travis-ci/issues/9069 | ||||
* | Do not require value to delete. | Logan Collins | 2018-07-19 | 1 | -1/+1 |
| | |||||
* | add the flag in front of the regexp to avoid Deprecation warning (see Issue ↵ | Thibault Roche | 2018-07-19 | 1 | -1/+7 |
| | | | | #949) | ||||
* | fix links (I have renamed the user) | Alberto Galera | 2018-07-19 | 1 | -3/+3 |
| | |||||
* | from bottle import touni, | cclauss | 2018-07-19 | 1 | -1/+1 |
| | | | touni() is called on line 97. | ||||
* | fix deprecation warnings (assertEquals); make tests environ and jinja2 ↵ | Dime Mikhalchenko | 2018-07-19 | 5 | -10/+9 |
| | | | | runnable standalone | ||||
* | fix code style | root | 2018-03-13 | 1 | -1/+3 |
| | |||||
* | Added bottle-oauthlib project reference | Jonathan Huot | 2018-02-14 | 1 | -0/+3 |
| | |||||
* | Make closing the file in _file_iter_range() optional. | Marcel Hellkamp | 2018-02-14 | 1 | -4/+6 |
| | |||||
* | Fixed ResourceWarning: unclosed file <_io.BufferedReader... in static_file() ↵ | Yosuke Otosu | 2018-02-14 | 1 | -1/+3 |
| | | | | #1000 | ||||
* | Insert omitted word in stpl.rst (#1012) | Noah Rosamilia | 2017-12-09 | 1 | -1/+1 |
| | |||||
* | fix pass None to tob (#1018) | 花浅葱 | 2017-12-09 | 1 | -1/+1 |
| | |||||
* | Fix typo for todo tutorial line 300 and 301 (#999) | Dustin D'Avignon | 2017-11-06 | 1 | -2/+2 |
| | |||||
* | Fix missing license | Oz N Tiram | 2017-11-06 | 1 | -1/+1 |
| | | | | this is described in #1004 | ||||
* | Merge pull request #1006 from fredj/spelling | Marcel Hellkamp | 2017-11-06 | 5 | -5/+5 |
|\ | | | | | Fix spelling errors | ||||
| * | Fix spelling errors | Frederic Junod | 2017-10-18 | 5 | -5/+5 |
| | | |||||
* | | Merge pull request #1007 from Chaitanya1416/patch-1 | Marcel Hellkamp | 2017-11-06 | 1 | -1/+1 |
|\ \ | | | | | | | Fixed a sentence |