Skip to content

Commit

Permalink
Fix typos in readme and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
colin committed Jul 29, 2016
1 parent 25026e5 commit 56f70c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Some reasons you might want to use:

* Simple, powerful, flexible and pythonic API.
* Support python 2.7, `3.3 or later <http://flask.pocoo.org/docs/python3/#python3-support>`_
* The Web browseable API.
* The web browsable API.
* Support for authentication.
* Proxy to test your JSON Service.
* Run-time type checking.
Expand Down Expand Up @@ -59,7 +59,7 @@ Write JSON-RPC methods.
def index():
return u'Welcome to Flask JSON-RPC'

All code of Example `run.py <https://github.com/cenobites/flask-jsonrpc/blob/master/run.py>`_.
All code of example `run.py <https://github.com/cenobites/flask-jsonrpc/blob/master/run.py>`_.


3. Running
Expand Down Expand Up @@ -113,8 +113,8 @@ We add the ``jsonrpc_version`` variable to the request object. It be either '1.0
For more tests see `Examples <https://github.com/cenobites/flask-jsonrpc/wiki/Examples>`_.


Referencies
***********
References
**********

* http://docs.python.org/
* http://flask.pocoo.org/docs/
Expand All @@ -123,8 +123,8 @@ Referencies
* http://www.jsonrpc.org/


Dependecies
***********
Dependencies
************

* Python (2.6.5+), (2.7, 3.3) or later (http://www.python.org)
* Flask 0.10 or later (http://flask.pocoo.org)
Expand Down
3 changes: 1 addition & 2 deletions flask_jsonrpc/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def dispatch(self, request, method=''):
valid, D = self.validate_get(request, method)
if not valid:
raise InvalidRequestError('The method you are trying to access is '
'not availble by GET requests')
'not available by GET requests')
elif not request.method == 'POST':
raise RequestPostError()
else:
Expand Down Expand Up @@ -435,4 +435,3 @@ def describe(self):


jsonrpc_site = JSONRPCSite()

0 comments on commit 56f70c8

Please sign in to comment.