Skip to content

Commit

Permalink
updated to use javascript object model
Browse files Browse the repository at this point in the history
  • Loading branch information
u2000 committed May 23, 2013
1 parent 94bf4bf commit 972d574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simpleProxy/apiproxy/resources/jsc/generateResponse.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
response.content='';
response.headers['Content-Type']='application/json';
var json = response.content.asJSON;
context.proxyResponse.content='';
context.proxyResponse.headers['Content-Type']='application/json';
var json = context.proxyResponse.content.asJSON;

json.country = 'us';
json.postalcode = '95123'
Expand Down

0 comments on commit 972d574

Please sign in to comment.