We're sorry, an error occurred in application reader.
Click here for technical details.
343 | return ret; |
344 | if (ret.status >= 200 && ret.status < 300) { |
345 | return ret.data; |
346 | } else { |
347 | throw new HttpRequestError(ret.statusInfo || ret.status, ret); |
348 | } |
349 | } |
350 | |
351 | /** |
229 | //response.setHeader("Content-Type", "text/plain"); |
230 | response.setContentType("text/plain; charset=UTF-8"); |
231 | page.setMode('plain'); |
232 | response.setStatusCode(200); |
233 | var req = wpost(API[type]["pins"] + "/" + command, |
234 | params |
235 | ,{ headers:{ |
236 | "cookie": cookie, |
237 | "Content-Type": "text/plain; charset=UTF-8", |
238 | }}); |
239 | response.write("("+req+")"); |
240 | } |
241 | } |
242 | function get_pin(){ |
33 | } |
34 | var fname = request.method.toLowerCase() + request.path.replace(/\//g, '_'); |
35 | var f = appjet._internal.global[fname]; |
36 | if (typeof(f) == 'function') { |
37 | f(); |
38 | return; |
39 | } |
40 | if (fname.charAt(fname.length - 1) == '_') { |
41 | f = appjet._internal.global[fname + 'main']; |
336 | return !!((~u.indexOf('AppleWebKit')) && (~u.indexOf('Mobile'))); |
337 | } |
338 | return false; |
339 | } |
340 | dispatch(); |
341 | |
342 | /* appjet:css */ |