parent
3ca474502a
commit
236e91abb2
|
@ -26,6 +26,8 @@ Issues =
|
||||||
response.on "data", (chunk) -> json += chunk
|
response.on "data", (chunk) -> json += chunk
|
||||||
|
|
||||||
response.on "end", -> callback JSON.parse(json), type
|
response.on "end", -> callback JSON.parse(json), type
|
||||||
|
else
|
||||||
|
throw response.statusCode
|
||||||
).end()
|
).end()
|
||||||
|
|
||||||
# URLs to API.
|
# URLs to API.
|
||||||
|
|
Loading…
Reference in New Issue