From 8fbd39c102336cc185f1fbde0af623eb8230bc72 Mon Sep 17 00:00:00 2001 From: Vitor Monteiro Date: Fri, 10 Jul 2015 18:49:36 +0100 Subject: [PATCH 1/2] Updated the README.md instructions --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 61e0350..7f29fd0 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,13 @@ Find your redistogo connection details `$ heroku config --app {app_name} | grep REDISTOGO_URL` -Modify line 19 of config/heroku.conf.py on redis details +Open `requestbin/config.py` and locate variables `REDIS_URL` and `REDIS_PORT`. Edit them with the connection details you got in the previous step: -`redis_url = urlparse.urlparse(os.environ.get("REDIS_URL", "redis://REDISTOGO_URL:REDISTOGO_PORT/0"))` +```python +REDIS_URL = "REDISTOGO_URL" +REDIS_HOST = "localhost" +REDIS_PORT = REDISTOGO_PORT +``` Now just deploy via git: @@ -42,4 +46,4 @@ It will push to Heroku and give you a URL that your own private RequestBin will Contributors ------------ * Barry Carlyon - * Jeff Lindsay \ No newline at end of file + * Jeff Lindsay From 3f9c7098d99e5de101344e5bee8e5b6d06887c6d Mon Sep 17 00:00:00 2001 From: tim dixon Date: Tue, 14 Jul 2015 17:19:18 -0700 Subject: [PATCH 2/2] Return the raw request in the API. --- requestbin/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requestbin/models.py b/requestbin/models.py index f16b36d..8b3ba03 100644 --- a/requestbin/models.py +++ b/requestbin/models.py @@ -102,6 +102,7 @@ def to_dict(self): method=self.method, headers=self.headers, query_string=self.query_string, + raw=self.raw, form_data=self.form_data, body=self.body, path=self.path,