Skip to content

Commit

Permalink
Refactor: Rename decodeAndRead to decodeStream
Browse files Browse the repository at this point in the history
  • Loading branch information
KiyonoKara committed Jan 13, 2024
1 parent 033204c commit 1d3893b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/kiyo/RequestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object RequestUtils {
compression = co_encoding.head
}

this.decodeAndRead(connectionInputStream, compression)
this.decodeStream(connectionInputStream, compression)
}

/**
Expand All @@ -80,7 +80,7 @@ object RequestUtils {
* @param contentEncoding The type of content encoding (gzip or deflate)
* @return The (decoded) content
*/
def decodeAndRead(inputStream: InputStream, contentEncoding: String): String = {
def decodeStream(inputStream: InputStream, contentEncoding: String): String = {
var reader: InputStream = inputStream

// Determine whether content encoding is gzip or deflate
Expand Down

0 comments on commit 1d3893b

Please sign in to comment.