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