Skip to content

Commit

Permalink
fix for url encded data in message
Browse files Browse the repository at this point in the history
  • Loading branch information
omgmovieslol committed Jul 20, 2009
1 parent e20c565 commit 5c756cc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions prowlpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ def post(self, application=None, event=None, description=None,priority=0):
headers = {'User-Agent': "Prowlpy/%s" % str(__version__)}

# URL-encode and string-ify keywords. Better type/content testing is needed here
application = urllib.quote(str(application))
event = urllib.quote(str(event))
description = urllib.quote(str(description))
priority = urllib.quote(str(priority))
# url.encode below fixes need for url quotes
# string-ify-ing might still be required. haven't tested that
#application = urllib.quote(str(application))
#event = urllib.quote(str(event))
#description = urllib.quote(str(description))
#priority = urllib.quote(str(priority))

# Perform the request and get the response headers and content
data = {
Expand Down

0 comments on commit 5c756cc

Please sign in to comment.