Permalink
Browse files

fix for url encded data in message

  • Loading branch information...
1 parent e20c565 commit 5c756cc7fc61080f20bcebd7ad0e8208304b1018 @omgmovieslol committed Jul 20, 2009
Showing with 6 additions and 4 deletions.
  1. +6 −4 prowlpy.py
View
@@ -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 = {

0 comments on commit 5c756cc

Please sign in to comment.