Permalink
Browse files

needs to be a POST and i forgot app engine can only make requests to …

…port 80 or 443
  • Loading branch information...
Jeff Lindsay
Jeff Lindsay committed Apr 27, 2009
1 parent 0f730ae commit e26e146cbb54e5c1f39e1558c072440f20d259a1
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin.py
View
5 bin.py
@@ -23,8 +23,9 @@ def post(self):
post.query_string = self.request.query_string
post.form_data = dict(self.request.POST)
post.put()
- if 'http://' in post.query_string:
- urlfetch.fetch(url=post.query_string.replace('http://', 'http://38.99.80.163:9000/'), payload=urllib.urlencode(post.form_data))
+ if 'http://' in self.request.query_string:
+ urlfetch.fetch(url=self.request.query_string.replace('http://', 'http://hookah.webhooks.org/'),
+ payload=urllib.urlencode(dict(self.request.POST)), method='POST')
self.redirect('/%s' % bin.name)
def _get_bin(self):

0 comments on commit e26e146

Please sign in to comment.