Skip to content

Commit

Permalink
Rename method to indicate implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Haberman committed Nov 4, 2009
1 parent e9f44c5 commit a6c1eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/fakehttp/IncomingRequestHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class IncomingRequestHandler(
}

override def messageReceived(cxt: ChannelHandlerContext, e: MessageEvent): Unit = {
if (forwardRawMessage(e.getMessage)) {
if (forwardRawChannelBufferOrHttpChunk(e.getMessage)) {
log("Got "+e.getMessage+" for "+lastHost)
sendDownstream(outgoingChannel, e.getMessage)
return
Expand Down Expand Up @@ -166,7 +166,7 @@ class IncomingRequestHandler(
}

/** @return whether we should skip introspecting the message and just forward it */
private def forwardRawMessage(message: Object): Boolean = {
private def forwardRawChannelBufferOrHttpChunk(message: Object): Boolean = {
// If ChannelBuffer, our HttpMessageDecoder was removed by OpaqueSslMode
// If HttpChunk, forward onto the existing connection
return message.isInstanceOf[ChannelBuffer] || message.isInstanceOf[HttpChunk]
Expand Down

0 comments on commit a6c1eae

Please sign in to comment.