Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Conversation

@aluttik
Copy link
Contributor

@aluttik aluttik commented Mar 5, 2016

Updated the nginScript docs for the new update.

Changes

  • All JavaScript code is now inside function name(request, response) {...}.
  • Code-blocks using the js_set directive now use a return statement.
  • Instances of $r were changed since the request object is now passed as the the first function parameter.
  • Removed instances of res = req.response since the response object is now passed as the second
    function parameter.
@LinuxJedi
Copy link
Contributor

Looks good to me

LinuxJedi added a commit that referenced this pull request Mar 5, 2016
@LinuxJedi LinuxJedi merged commit ed1c962 into nginxinc:master Mar 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants