Skip to content
This repository was archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #15 from hel-repo/dev
Browse files Browse the repository at this point in the history
Hel 3.0.2
  • Loading branch information
Fingercomp authored Nov 14, 2016
2 parents 3697415 + 05f83a2 commit 1842160
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 420 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-----
- Added the PATCH request method to the list of allowed HTTP methods.
- Added the line of code to actually change the name of a package.
- Fixed crash when sending preflight CORS request without ``Access-Control-Request-Headers``.

3.0.1
-----
Expand Down
5 changes: 3 additions & 2 deletions hel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ def add_cors_to_response(event):
def cors_options_view(context, request):
response = request.response
if 'Access-Control-Request-Headers' in request.headers:
response.headers['Access-Control-Allow-Headers'] = (
request.headers['Access-Control-Request-Headers'])
if 'Access-Control-Request-Method' in request.headers:
response.headers['Access-Control-Allow-Methods'] = (
'OPTIONS,HEAD,GET,POST,PUT,DELETE,PATCH')
response.headers['Access-Control-Allow-Headers'] = (
request.headers['Access-Control-Request-Headers'])
return response


Expand Down
22 changes: 0 additions & 22 deletions hel/static/main.js

This file was deleted.

254 changes: 0 additions & 254 deletions hel/static/theme.css

This file was deleted.

Loading

0 comments on commit 1842160

Please sign in to comment.