Skip to content

Commit

Permalink
fix(tests) fix config test broken because of #580
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Oct 5, 2015
1 parent ab0bf4d commit 7d4c61f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/unit/statics_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ nginx: |
ngx.header["Access-Control-Allow-Origin"] = "*"
if ngx.req.get_method() == "OPTIONS" then
ngx.header["Access-Control-Allow-Methods"] = "GET,HEAD,PUT,PATCH,POST,DELETE"
ngx.header["Access-Control-Allow-Headers"] = "Content-Type"
ngx.exit(204)
end
local lapis = require "lapis"
Expand Down

0 comments on commit 7d4c61f

Please sign in to comment.