Commit Graph

302 Commits

Author SHA1 Message Date
Kenneth Reitz a2f490c721 runtime 2012-12-20 03:08:03 -05:00
Kenneth Reitz 059595806f Merge remote-tracking branch 'origin/master' 2012-12-20 03:07:26 -05:00
Kenneth Reitz b387ee2dea simplify 2012-12-20 02:47:15 -05:00
Kenneth Reitz 137f0d44aa 10 instead 2012-12-06 16:28:04 -05:00
Kenneth Reitz 9dbcdeaa69 get counter instead 2012-12-06 16:22:25 -05:00
Kenneth Reitz a0c43749fd no debug 2012-12-06 16:17:37 -05:00
Kenneth Reitz ff198f32bc better 2012-12-06 16:17:17 -05:00
Kenneth Reitz 90764a3678 oops 2012-12-06 16:15:40 -05:00
Kenneth Reitz 8ca9909f8f librato 2012-12-06 16:12:40 -05:00
Kenneth Reitz 4e3495643d no newrelic 2012-12-06 16:09:05 -05:00
Kenneth Reitz f98a2b14f9 librato 2012-12-06 16:07:53 -05:00
Kenneth Reitz 37fd292137 Merge pull request #73 from piotr-dobrogost/master
Removed unused and/or undocumented dependencies.
2012-10-30 17:30:07 -07:00
Piotr Dobrogost ee0644b188 Removed unused and/or undocumented dependencies.
Fixes issue #69
2012-10-27 23:58:25 +02:00
Kenneth Reitz e981935f8f Merge pull request #72 from piotr-dobrogost/master
remove empty file httpbin/templates/... which is not a valid file's name under Windows
2012-10-27 08:47:36 -07:00
Piotr Dobrogost dd7730bef7 remove empty file httpbin/templates/... which is not a valid file's name under Windows. fixes issue 70 2012-10-24 11:51:30 +02:00
Kenneth Reitz 15d132f76e Merge pull request #65 from josher19/patch-1
Update httpbin/core.py
2012-09-09 22:43:58 -07:00
josher19 24488f849f Update httpbin/core.py
302 instead of 301 redirect in docs for def relative_redirect_n_times
2012-09-10 13:43:01 +08:00
Kenneth Reitz a8b97f093b 9 workers 2012-08-28 13:33:32 -04:00
Kenneth Reitz cfbee2b939 \0/ 2012-08-20 22:14:09 +10:00
Kenneth Reitz dcf4f003b8 Merge pull request #62 from snh/multiplecookies
Support for setting multiple cookies in a single request.
2012-08-20 05:08:35 -07:00
Steven Honson b1196a239b Support for setting multiple cookies in a single request. 2012-08-20 21:54:27 +10:00
Kenneth Reitz 46e00b7d1a Revert "Use gevent.sleep to make the program non-blocking"
This reverts commit d96dd79579.
2012-08-20 15:45:21 +10:00
Kenneth Reitz 69ca392630 Merge pull request #60 from randomir/master
Bugfix: JSON-safe encoding of raw binary data/files
2012-08-19 22:41:29 -07:00
Radomir Stevanovic 9a56bb8dd0 bugfix: JSON-safe encoding of raw binary data/files
Encoding of the received files and/or body data was failing in case of raw
binary data being POSTed/PUT/etc. (The exact trigger was actually a non-UTF-8
data stream, since Flask's `jsonify`, i.e. `simplejson.dumps` assumes UTF-8.)

Binary data in a JSON response are now encoded as "data" URLs, according to
RFC 2397. "Data" URL scheme was chosen for its simplicity and clarity. MIME
type is included. Plain text is passed thru unmodified, as before.

Also, tests demonstrating the bug/fix added to `test_httpbin.py`.
2012-08-14 22:57:35 +02:00
Kenneth Reitz 6e53707c3a Merge pull request #59 from randomir/master
few repo init fixes (git-, pip-, test-related)
2012-08-14 11:57:49 -07:00
Radomir Stevanovic 213d03a090 init fixes (git, pip & test related)
- gitignored: *.pyc, env/
  - gevent added to requirements.txt
  - test_httpbin syntax error fix
2012-08-14 20:43:35 +02:00
Kenneth Reitz 7da93c1877 Merge pull request #58 from mnunberg/master
Some fixes
2012-08-12 21:03:32 -07:00
Mark Nunberg d96dd79579 Use gevent.sleep to make the program non-blocking 2012-08-02 17:56:51 -07:00
Mark Nunberg ad8d69e4c5 Use pywsgi.py instead of wsgi (better chunked handling) 2012-08-02 17:56:28 -07:00
Kenneth Reitz a9a1fe716a html update 2012-07-01 15:51:42 -04:00
Kenneth Reitz c2ed9a1aed Merge pull request #51 from FlaPer87/master
Missing html! Ops!
2012-07-01 12:50:55 -07:00
Flavio Percoco Premoli 6a3a2fb63a updated README 2012-06-30 02:08:36 +02:00
Flavio Percoco Premoli 85c207c001 missing html 2012-06-30 02:01:23 +02:00
Kenneth Reitz 47170273c3 Merge pull request #50 from FlaPer87/master
Robots Support and Simple Html response
2012-06-29 16:56:34 -07:00
Flavio Percoco Premoli 62657b203d Added support for:
* Robots.txt requests which is usefule for robots rules tests.
    * Robots denied page (/deny)
    * Simple html page for views / calls that expect an html.
2012-06-30 01:52:42 +02:00
Kenneth Reitz 2299db88e4 typo 2012-06-09 11:19:14 -04:00
Kenneth Reitz c7a02cc3ab eventlet now 2012-06-09 11:17:42 -04:00
Kenneth Reitz 07e9afab24 remove gevent temporarily 2012-06-09 11:15:54 -04:00
Kenneth Reitz 8c390dc0a3 remove cruft 2012-06-09 11:13:39 -04:00
Kenneth Reitz 182f80b8ab raven and newrelic 2012-06-09 11:07:24 -04:00
Kenneth Reitz 7c4d4643d9 update requirements 2012-06-09 11:06:31 -04:00
Kenneth Reitz 0cbf9c32bd catch rewrelic import 2012-06-09 10:55:23 -04:00
Kenneth Reitz 9594b23efc fix syntax error 2012-06-05 10:35:31 +02:00
Kenneth Reitz bc4444acfc data fix for json 2012-06-05 10:32:23 +02:00
Kenneth Reitz 49b9635304 fix banner 2012-06-05 10:28:16 +02:00
Kenneth Reitz b7437b408b Merge pull request #48 from mkomitee/master
401 is a more proper status_code for failed authentication
2012-06-05 01:22:44 -07:00
Michael Komitee 98ed988b76 401 is the proper status code for failed authentication here:
10.4.2 401 Unauthorized

The request requires user authentication. The response MUST include a
WWW-Authenticate header field (section 14.47) containing a challenge applicable
to the requested resource. The client MAY repeat the request with a suitable
Authorization header field (section 14.8). If the request already included
Authorization credentials, then the 401 response indicates that authorization
has been refused for those credentials. If the 401 response contains the same
challenge as the prior response, and the user agent has already attempted
authentication at least once, then the user SHOULD be presented the entity that
was given in the response, since that entity might include relevant diagnostic
information. HTTP access authentication is explained in "HTTP Authentication:
Basic and Digest Access Authentication" [43].

10.4.4 403 Forbidden

The server understood the request, but is refusing to fulfill it. Authorization
will not help and the request SHOULD NOT be repeated. If the request method was
not HEAD and the server wishes to make public why the request has not been
fulfilled, it SHOULD describe the reason for the refusal in the entity. If the
server does not wish to make this information available to the client, the
status code 404 (Not Found) can be used instead.
2012-06-01 16:43:50 -04:00
Kenneth Reitz 32d397c43d Merge pull request #44 from faulkner/fix-readme-delay
Fix broken example link for delay endpoint.
2012-04-04 13:14:57 -07:00
Chris Faulkner 6ac9dfe029 Fix broken example link for delay endpoint. 2012-04-04 11:44:20 -07:00
Kenneth Reitz 247b94812a Merge remote-tracking branch 'origin/master' 2012-04-03 15:24:04 -04:00