Skip to content

Commit 0fe2422

Browse files
committed
fix travis ci
Change-Id: I88295b5adf157420052793c94b74dbdcb1abdaf3
1 parent f3333d0 commit 0fe2422

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/targets/java/asynchttp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @description
33
* Asynchronous Http and WebSocket Client library for Java
4-
*
4+
*
55
* @author
66
* @windard
77
*
@@ -19,11 +19,11 @@ module.exports = function (source, options) {
1919

2020
var code = new CodeBuilder(opts.indent)
2121

22-
var methods = [ 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT' ]
22+
// var methods = [ 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT' ]
2323

2424
code.push('Dsl.asyncHttpClient()')
2525

26-
code.push(1, '.prepare%s%s("%s")', source.method.slice(0,1).toUpperCase(), source.method.slice(1).toLowerCase(), source.fullUrl)
26+
code.push(1, '.prepare%s%s("%s")', source.method.slice(0, 1).toUpperCase(), source.method.slice(1).toLowerCase(), source.fullUrl)
2727

2828
// Add headers, including the cookies
2929
var headers = Object.keys(source.allHeaders)

src/targets/java/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ module.exports = {
1010

1111
okhttp: require('./okhttp'),
1212
unirest: require('./unirest'),
13-
asynchttp: require('./asynchttp'),
13+
asynchttp: require('./asynchttp')
1414

1515
}

test/fixtures/available-targets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@
196196
"title": "Unirest",
197197
"link": "http://unirest.io/java.html",
198198
"description": "Lightweight HTTP Request Client Library"
199+
},
200+
{
201+
"key": "asynchttp",
202+
"title": "AsyncHttp",
203+
"link": "https://github.com/AsyncHttpClient/async-http-client",
204+
"description": "Asynchronous Http and WebSocket Client library for Java"
199205
}
200206
]
201207
},

0 commit comments

Comments
 (0)