We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba0dc2 commit 936d93cCopy full SHA for 936d93c
tinify/source.py
@@ -65,7 +65,10 @@ def store(self, **options): # type: (Any) -> ResultMeta
65
return ResultMeta(response.headers)
66
67
def result(self): # type: () -> Result
68
- response = tinify.get_client().request('GET', self.url, self.commands)
+ if not self.commands:
69
+ response = tinify.get_client().request('GET', self.url, self.commands)
70
+ else:
71
+ response = tinify.get_client().request('POST', self.url, self.commands)
72
return Result(response.headers, response.content)
73
74
def to_file(self, path): # type: (Union[str, IO]) -> None
0 commit comments