Skip to content

Commit 52a88f6

Browse files
committed
Added OPTIONS to list of HTTP method overrides, since urllib2 automatically
sets to GET or POST depending on the presence of data.
1 parent 31ccf3d commit 52a88f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ox3apiclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
API_PATH_V2 = '/ox/4.0'
4343
ACCEPTABLE_PATHS = (API_PATH_V1, API_PATH_V2)
4444
JSON_PATHS = (API_PATH_V2,)
45-
HTTP_METHOD_OVERRIDES = ['DELETE', 'PUT']
45+
HTTP_METHOD_OVERRIDES = ['DELETE', 'PUT', 'OPTIONS']
4646

4747
class UnknownAPIFormatError(ValueError):
4848
"""Client is passed an unrecognized API path that it cannot handle."""

0 commit comments

Comments
 (0)