Fixed copyright.
This commit is contained in:
parent
6b615cf141
commit
8d33ddc252
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Pinboard.java
|
* PinboardUtils.kt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2004-2019, Erik C. Thauvin (erik@thauvin.net)
|
* Copyright (c) 2004-2020, Erik C. Thauvin (erik@thauvin.net)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* PinboardTest.kt
|
* PinboardUtilsTest.kt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2004-2020, Erik C. Thauvin (erik@thauvin.net)
|
* Copyright (c) 2004-2020, Erik C. Thauvin (erik@thauvin.net)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -62,7 +62,7 @@ class PinboardUtilsTest : LocalProperties() {
|
||||||
|
|
||||||
private fun validatePin(apiToken: String, ircServer: String = "", url: String): Boolean {
|
private fun validatePin(apiToken: String, ircServer: String = "", url: String): Boolean {
|
||||||
val response = Utils.urlReader(URL("https://api.pinboard.in/v1/posts/get?auth_token=${apiToken}&tag=test&"
|
val response = Utils.urlReader(URL("https://api.pinboard.in/v1/posts/get?auth_token=${apiToken}&tag=test&"
|
||||||
+ URLEncoder.encode(url, StandardCharsets.UTF_8)))
|
+ Utils.encodeUrl(url)))
|
||||||
|
|
||||||
return response.contains(url) && response.contains(ircServer)
|
return response.contains(url) && response.contains(ircServer)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue