diff --git a/README.rst b/README.rst index 56dab6ab..440e66c0 100644 --- a/README.rst +++ b/README.rst @@ -109,7 +109,7 @@ Most of the flags mirror the arguments understood by ``requests.request``. See ` [--style STYLE] [--auth AUTH] [--auth-type {basic,digest}] [--verify VERIFY] [--proxy PROXY] [--allow-redirects] [--timeout TIMEOUT] - METHOD URL [ITEM [ITEM ...]] + [METHOD] URL [ITEM [ITEM ...]] HTTPie - cURL for humans. @@ -117,7 +117,7 @@ Most of the flags mirror the arguments understood by ``requests.request``. See ` METHOD The HTTP method to be used for the request (GET, POST, PUT, DELETE, PATCH, ...). If this argument is omitted then httpie will guess HTTP method. If there is either - form data field or JSON data field or file field + simple data field or JSON data field or file field presents then method is POST otherwise it is GET. URL The protocol defaults to http:// if the URL does not include one. diff --git a/httpie/cli.py b/httpie/cli.py index 63c7530e..f99f4b67 100644 --- a/httpie/cli.py +++ b/httpie/cli.py @@ -177,7 +177,7 @@ parser.add_argument( The HTTP method to be used for the request (GET, POST, PUT, DELETE, PATCH, ...). If this argument is omitted then httpie will guess HTTP method. - If there is either form data field or JSON data field + If there is either form simple field or JSON data field or file field presents then method is POST otherwise it is GET. ''') ) diff --git a/httpie/cliparse.py b/httpie/cliparse.py index 1d7b483a..b18798a3 100644 --- a/httpie/cliparse.py +++ b/httpie/cliparse.py @@ -55,7 +55,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser): """Suggests HTTP method by positional argument values. In following description by data item it means one of: - * form data item (key=value) + * simple data item (key=value) * JSON raw item (key:=value) * file item (key@value)