Fixed copyright.

This commit is contained in:
Erik C. Thauvin 2020-06-20 11:07:51 -07:00
parent 6b615cf141
commit 8d33ddc252
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)
} }