Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test & examples: zap six | Aldo Cortesi | 2016-10-17 | 3 | -15/+3 |
| | |||||
* | parse_set_cookie header returns an empty list if no cookies are found | Aldo Cortesi | 2016-09-28 | 1 | -3/+3 |
| | | | | This matches parse_cookie, and is more idiomatic. | ||||
* | Add tests for comma separated Set-Cookies | Shadab Zafar | 2016-09-27 | 1 | -10/+47 |
| | |||||
* | Make needed changes in tests | Shadab Zafar | 2016-09-27 | 1 | -30/+33 |
| | |||||
* | Update cookie tests | Shadab Zafar | 2016-09-27 | 1 | -91/+84 |
| | | | | | This is needed since _read_pairs now returns a list of cookies each of which is a list of [name, value] tuples. | ||||
* | Merge pull request #1564 from mhils/issue-1554 | Maximilian Hils | 2016-09-21 | 1 | -0/+5 |
|\ | | | | | Fix Response.make content-length header | ||||
| * | fix Response.make content-length header | Maximilian Hils | 2016-09-21 | 1 | -0/+5 |
| | | |||||
* | | raise TypeError on invalid header assignment, fix #1562 | Maximilian Hils | 2016-09-21 | 1 | -0/+9 |
|/ | |||||
* | Lint fix - minor | arjun23496 | 2016-08-31 | 1 | -1/+1 |
| | |||||
* | Lint fix - replace tests | arjun23496 | 2016-08-31 | 3 | -6/+9 |
| | |||||
* | Added tests for replace in request,message,header | arjun23496 | 2016-08-31 | 3 | -1/+23 |
| | |||||
* | introduce Response.make for simple response creation | Maximilian Hils | 2016-08-23 | 1 | -0/+20 |
| | |||||
* | Use test times less than 2038 | Shadab Zafar | 2016-08-15 | 1 | -3/+3 |
| | | | | So that tests pass on 32bit systems too | ||||
* | Assert cookie groups explicitly rather than just the length | Shadab Zafar | 2016-08-15 | 1 | -16/+40 |
| | |||||
* | Add some cookie formatting related tests | Shadab Zafar | 2016-08-15 | 1 | -3/+3 |
| | |||||
* | Add a function to get cookie expiration time | Shadab Zafar | 2016-08-15 | 1 | -0/+20 |
| | |||||
* | Add method to group pairs by cookies | Shadab Zafar | 2016-08-15 | 1 | -0/+20 |
| | |||||
* | add quote/unquote tests | Maximilian Hils | 2016-07-24 | 1 | -2/+42 |
| | |||||
* | remove content caching in netlib.http.Message | Maximilian Hils | 2016-07-23 | 1 | -33/+0 |
| | |||||
* | fix content view cache invalidation | Maximilian Hils | 2016-07-21 | 1 | -4/+0 |
| | |||||
* | Fix netlib.utils.is_valid_host | Aldo Cortesi | 2016-07-21 | 1 | -0/+9 |
| | | | | | | | | - Don't crash when passed an empty string. This translated into an actual core crash, discovered while fuzzing with afl. - Taking a slice of length one out of bytes returns an integer, so the check for trailing period in this function never worked on Python3. - Add unit tests. | ||||
* | fix-1366 | Thomas Kriechbaumer | 2016-07-16 | 1 | -4/+22 |
| | |||||
* | preserve content-type parameter order | Maximilian Hils | 2016-07-15 | 1 | -1/+3 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into message-body-encoding | Maximilian Hils | 2016-07-15 | 4 | -8/+29 |
|\ | |||||
| * | Test cookies.is_expired separately | Shadab Zafar | 2016-07-10 | 1 | -0/+21 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 2 | -3/+3 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 1 | -4/+4 |
| | | |||||
* | | improve message content semantics | Maximilian Hils | 2016-07-15 | 2 | -13/+73 |
| | | |||||
* | | raise ValueError if content-encoding is invalid | Maximilian Hils | 2016-07-04 | 1 | -8/+10 |
| | | |||||
* | | tests++ | Maximilian Hils | 2016-07-02 | 1 | -1/+43 |
| | | |||||
* | | message.content -> .raw_content, implement .text | Maximilian Hils | 2016-07-02 | 1 | -33/+84 |
|/ | | | | | | | | | | | | | | | This PR improves our handling of HTTP message body encodings: - The unaltered message body is now accessible as `.raw_content` - The "content-encoding"-decoded content (i.e. gzip removed) content is not `.content`, as this is what we want in 99% of the cases. - `.text` now provides the "content-encoding"-decoded and then "content-type charset"-decoded message body. - The decoded values for `.content` and `.text` are cached, so that repeated access and `x.text = x.text` is cheap. - The `decoded()` decorator is now deprecated, as we can now just use `.content`. Similarly `HTTPMessage.get_decoded_content()` is deprecated. | ||||
* | move custom HTTP/2 stack from netlib to pathod | Thomas Kriechbaumer | 2016-06-17 | 2 | -544/+1 |
| | |||||
* | Use handlers in http2 test suite | Aldo Cortesi | 2016-06-14 | 1 | -100/+100 |
| | |||||
* | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -2/+1 |
| | |||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 1 | -3/+3 |
| | |||||
* | Fix test failures | Aldo Cortesi | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 2 | -0/+2 |
| | |||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 2 | -0/+33 |
| | | | | | | also utils.parse_content_type -> http.headers.parse_content_type | ||||
* | netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokens | Aldo Cortesi | 2016-05-31 | 1 | -1/+12 |
| | | | | Placing this next to its only use. | ||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 1 | -20/+20 |
| | | | | A pattern we need to use far more often in the codebase | ||||
* | Extract url functions from netlib.utils and move to netlib.http.url | Aldo Cortesi | 2016-05-31 | 1 | -0/+65 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 1 | -13/+13 |
| | | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes | ||||
* | Improve handling of pseudo-headers | Aldo Cortesi | 2016-05-31 | 1 | -1/+4 |
| | | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction. | ||||
* | fix headers order | Thomas Kriechbaumer | 2016-05-29 | 1 | -1/+1 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -3/+4 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -14/+19 |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | ||||
* | fix tests | Maximilian Hils | 2016-05-28 | 3 | -4/+4 |
| | |||||
* | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 4 | -6/+2 |
| | |||||
* | Clean un-needed imports | Aldo Cortesi | 2016-05-21 | 1 | -2/+0 |
| | |||||
* | tests++ | Maximilian Hils | 2016-05-20 | 1 | -98/+1 |
| |